summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-06-23 16:17:29 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-06-23 17:20:26 +0200
commit2db34a069901cd0149d04c275df19afba728cdcc (patch)
tree3158d12ecb235afb45c1c92780b3fed88594208b /sc
parent9b32355ea6d8d5e34363ba0c57e74d75d7a7b1b7 (diff)
Resolves: tdf#108708 set a min width for calc dropdown combobox button
Change-Id: I002350170cf30a3347ed0c4e4885109ef194458e Reviewed-on: https://gerrit.libreoffice.org/39178 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/cctrl/cbuttonw.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/cctrl/cbuttonw.cxx b/sc/source/ui/cctrl/cbuttonw.cxx
index e559ea185f25..f922e545d71a 100644
--- a/sc/source/ui/cctrl/cbuttonw.cxx
+++ b/sc/source/ui/cctrl/cbuttonw.cxx
@@ -43,9 +43,8 @@ void ScDDComboBoxButton::SetOutputDevice( OutputDevice* pOutputDevice )
void ScDDComboBoxButton::SetOptSizePixel()
{
- aBtnSize = pOut->LogicToPixel( Size(0,11), MapUnit::MapAppFont );
- //aBtnSize.Width() = GetSystemMetrics( SM_CXVSCROLL ) - 1; // Win SDK function
- aBtnSize.Width() = pOut->GetSettings().GetStyleSettings().GetScrollBarSize();
+ aBtnSize = pOut->LogicToPixel(Size(8, 11), MapUnit::MapAppFont);
+ aBtnSize.Width() = std::max(aBtnSize.Width(), pOut->GetSettings().GetStyleSettings().GetScrollBarSize());
}
void ScDDComboBoxButton::Draw( const Point& rAt,