summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2016-05-06 08:20:21 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2016-05-06 09:15:21 +0000
commit23f86273068b2389fc8703a8cc6b5c77968c918d (patch)
treeefdae4a15b59a457e546f3c76cf4c25b034fcff7
parentfe620cb2ac2cdd75e7dbdcc0af422dff58c4fb41 (diff)
tdf#99701 Calc multiline input: Give button a fixed width
It should not depend on the scrollbar size as the scrollbar is very thin in some environments (esp. GTK3) Change-Id: I5cb4b145c21614482d7d402cebc33600f29cce09 Reviewed-on: https://gerrit.libreoffice.org/24688 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
-rw-r--r--sc/source/ui/app/inputwin.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 1e9a1029e89c..962a84c96ebd 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -72,6 +72,7 @@
#define THESIZE 1000000 // Should be more than enough!
#define TBX_WINDOW_HEIGHT 22 // in pixel - TODO: The same on all systems?
+#define MULTILINE_BUTTON_WIDTH 20 // Width of the button which opens the multiline dropdown
#define LEFT_OFFSET 5
#define INPUTWIN_MULTILINES 6
const long BUTTON_OFFSET = 2; ///< space between input line and the button to expand / collapse
@@ -882,7 +883,7 @@ ScInputBarGroup::ScInputBarGroup(vcl::Window* pParent, ScTabViewShell* pViewSh)
maTextWnd->SetQuickHelpText(ScResId(SCSTR_QHELP_INPUTWND));
maTextWnd->SetHelpId(HID_INSWIN_INPUT);
- Size aSize(GetSettings().GetStyleSettings().GetScrollBarSize(), maTextWnd->GetPixelHeightForLines(1));
+ Size aSize(MULTILINE_BUTTON_WIDTH, maTextWnd->GetPixelHeightForLines(1));
maButton->SetClickHdl(LINK(this, ScInputBarGroup, ClickHdl));
maButton->SetSizePixel(aSize);