summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZolnai Tamás <zolnaitamas2000@gmail.com>2013-03-09 10:43:40 +0100
committerFridrich Strba <fridrich@documentfoundation.org>2013-03-11 09:53:26 +0000
commit3a31375528ad3d9fc49f5ab3982e96c9e46fa7af (patch)
treec1b634458818b7be8e11f444a30f39fab6f762b6
parentbda200348566da71ae7ec346108bc6a00c22bf12 (diff)
Make ComboBox::CalcSize to return the right width
Change-Id: I83f5075281b2edd3f7a5e94709f0529d0c744ff8 Reviewed-on: https://gerrit.libreoffice.org/2612 Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr> Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
-rw-r--r--vcl/source/control/combobox.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx
index 1c99ac21c843..cc8282030c46 100644
--- a/vcl/source/control/combobox.cxx
+++ b/vcl/source/control/combobox.cxx
@@ -1146,6 +1146,8 @@ Size ComboBox::CalcSize( sal_uInt16 nColumns, sal_uInt16 nLines ) const
aSz.Width() += GetSettings().GetStyleSettings().GetScrollBarSize();
}
+ aSz.Width() += ImplGetExtraOffset() * 2;
+
aSz = CalcWindowSize( aSz );
return aSz;
}