[Libreoffice-commits] core.git: vcl/source
Zolnai Tamás
zolnaitamas2000 at gmail.com
Mon Mar 11 02:53:47 PDT 2013
vcl/source/control/combobox.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 3a31375528ad3d9fc49f5ab3982e96c9e46fa7af
Author: Zolnai Tamás <zolnaitamas2000 at gmail.com>
Date: Sat Mar 9 10:43:40 2013 +0100
Make ComboBox::CalcSize to return the right width
Change-Id: I83f5075281b2edd3f7a5e94709f0529d0c744ff8
Reviewed-on: https://gerrit.libreoffice.org/2612
Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat at free.fr>
Tested-by: Bosdonnat Cedric <cedric.bosdonnat at free.fr>
diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx
index 1c99ac2..cc82820 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;
}
More information about the Libreoffice-commits
mailing list