summaryrefslogtreecommitdiff
path: root/sdext/source
diff options
context:
space:
mode:
authorSrijan Bhatia <srijanbhatiasun@gmail.com>2020-07-12 20:29:28 +0530
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2020-07-13 00:35:02 +0200
commitffe503b62f9a508285ed06ef977f91604130579a (patch)
tree9c0fe46de386029402393306bbb9ae1eef6ebd59 /sdext/source
parentdbece49a77e4cf3f6a0f95acb2936891d66d960b (diff)
tdf#90978 add gap between the exit button and the right edge of the toolbar
Change-Id: I703f3bd21101daeaa58ce1c0659e275335f26727 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98601 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'sdext/source')
-rw-r--r--sdext/source/presenter/PresenterToolBar.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sdext/source/presenter/PresenterToolBar.cxx b/sdext/source/presenter/PresenterToolBar.cxx
index e3f2d6da7cba..4f700339dc5a 100644
--- a/sdext/source/presenter/PresenterToolBar.cxx
+++ b/sdext/source/presenter/PresenterToolBar.cxx
@@ -718,6 +718,9 @@ void PresenterToolBar::Layout (
nGapCount += maElementContainer.size()-1;
}
+ // Done to introduce gap between the end of the toolbar and the last button
+ aTotalSize.Width += gnGapSize/2;
+
// Calculate the minimal size so that the window size of the tool bar
// can be adapted accordingly.
maMinimalSize = aTotalSize;