summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-10-24 13:29:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-10-24 15:39:27 +0100
commitb9326cf05f1ec7ba480bef756c20eca91035bedc (patch)
tree4c822ba175bc1db08d34e629d74b81fae8fd1367 /vcl
parent88fe7d133b0597f7b18146589017af33877baf80 (diff)
improve optimal height of empty comboboxes
Change-Id: I481e079136ab0496ac79b60931bfce8509b4af23
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/combobox.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx
index 841a65f11cdc..9d04b7a2e30f 100644
--- a/vcl/source/control/combobox.cxx
+++ b/vcl/source/control/combobox.cxx
@@ -1114,7 +1114,7 @@ Size ComboBox::CalcMinimumSize() const
}
else
{
- aSz.Height() = mpImplLB->CalcSize( 1 ).Height();
+ aSz.Height() = Edit::CalcMinimumSizeForText(GetText()).Height();
aSz.Width() = mpImplLB->GetMaxEntryWidth();
aSz.Width() += getMaxWidthScrollBarAndDownButton();
}