summaryrefslogtreecommitdiff
path: root/vcl/source/control/combobox.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/control/combobox.cxx')
-rw-r--r--vcl/source/control/combobox.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx
index 15e088d7f3c6..6c33b209710f 100644
--- a/vcl/source/control/combobox.cxx
+++ b/vcl/source/control/combobox.cxx
@@ -1012,7 +1012,7 @@ tools::Long ComboBox::getMaxWidthScrollBarAndDownButton() const
if ( GetNativeControlRegion(ControlType::Combobox, ControlPart::ButtonDown,
aArea, ControlState::NONE, aControlValue, aBound, aContent) )
{
- nButtonDownWidth = aContent.getWidth();
+ nButtonDownWidth = aContent.getOpenWidth();
}
tools::Long nScrollBarWidth = GetSettings().GetStyleSettings().GetScrollBarSize();
@@ -1468,7 +1468,7 @@ ComboBoxBounds ComboBox::Impl::calcComboBoxDropDownComponentBounds(
aContent.Move(-aPoint.X(), -aPoint.Y());
aBounds.aButtonPos = Point(aContent.Left(), nTop);
- aBounds.aButtonSize = Size(aContent.getWidth(), (nBottom-nTop));
+ aBounds.aButtonSize = Size(aContent.getOpenWidth(), (nBottom-nTop));
// adjust the size of the edit field
if (m_rThis.GetNativeControlRegion(ControlType::Combobox, ControlPart::SubEdit,
@@ -1484,7 +1484,7 @@ ComboBoxBounds ComboBox::Impl::calcComboBoxDropDownComponentBounds(
else
{
// use the themes drop down size for the button
- aBounds.aSubEditSize = Size(rOutSz.Width() - aContent.getWidth(), rOutSz.Height());
+ aBounds.aSubEditSize = Size(rOutSz.Width() - aContent.getOpenWidth(), rOutSz.Height());
}
}
else