[PATCH] Make ComboBox::CalcSize to return the right width

Zolnai Tamás (via_Code_Review) gerrit at gerrit.libreoffice.org
Sat Mar 9 01:57:34 PST 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/2612

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/12/2612/1

Make ComboBox::CalcSize to return the right width

Change-Id: I83f5075281b2edd3f7a5e94709f0529d0c744ff8
---
M vcl/source/control/combobox.cxx
1 file changed, 2 insertions(+), 0 deletions(-)



diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx
index e561768..c216cd0 100644
--- a/vcl/source/control/combobox.cxx
+++ b/vcl/source/control/combobox.cxx
@@ -1146,6 +1146,8 @@
             aSz.Width() += GetSettings().GetStyleSettings().GetScrollBarSize();
     }
 
+    aSz.Width() += ImplGetExtraOffset() * 2;
+
     aSz = CalcWindowSize( aSz );
     return aSz;
 }

-- 
To view, visit https://gerrit.libreoffice.org/2612
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I83f5075281b2edd3f7a5e94709f0529d0c744ff8
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Zolnai Tamás <zolnaitamas2000 at gmail.com>



More information about the LibreOffice mailing list