summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
authorMarco Cecchetti <marco.cecchetti@collabora.com>2019-09-24 16:37:46 +0200
committerJan Holesovsky <kendy@collabora.com>2019-09-24 19:09:03 +0200
commit9b1c534149878e31c62e49a60ed83e7ae0033d31 (patch)
tree9f51e99baa55c43acd219cb82fe9b2d445c32590 /vcl/source/window
parentf251a18012dc40b4676d87dde03612dc47e182ef (diff)
tdf#126966: Use larger buttons for the colours in the sidebar on iOS - 2
This mostly reverts commit 918194c26ced8627d4f94840a4fb52ed70185446 that reverted "tdf#126966: Use larger buttons for the colours in the sidebar on iOS" So in the end Tor's patch was not so far from being the right solution. Just we need to avoid to triplicate the button size each time the update method is invoked. Change-Id: I9687546889bc20ef95a50aeafbc6f40e939d57a9 Reviewed-on: https://gerrit.libreoffice.org/79468 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/toolbox.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index bbc4ddf7c9a1..dda813ae3d90 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -1427,6 +1427,9 @@ bool ToolBox::ImplCalcItem()
long nMinWidth = 6;
long nMinHeight = 6;
long nDropDownArrowWidth = TB_DROPDOWNARROWWIDTH;
+#ifdef IOS
+ nDropDownArrowWidth *= 3;
+#endif
// set defaults if image or text is needed but empty
nDefWidth = GetDefaultImageSize().Width();