]> git.saurik.com Git - wxWidgets.git/commitdiff
fix for SetSize was missing
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 27 Feb 2003 10:18:16 +0000 (10:18 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 27 Feb 2003 10:18:16 +0000 (10:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/combobox.cpp
src/mac/combobox.cpp

index 494f6889215770da2c8980c4b612431db5cefd44..2e68206c4275886cf4353248c8084154fa49167c 100644 (file)
@@ -205,7 +205,7 @@ void wxComboBox::DoMoveWindow(int x, int y, int width, int height) {
     }
     else
     {
-        wxCoord wText = width - POPUPWIDTH;
+        wxCoord wText = width - POPUPWIDTH - MARGIN;
         m_text->SetSize(0, 0, wText, height);
         m_choice->SetSize(0 + wText + MARGIN, 0, POPUPWIDTH, -1);
     }    
index 494f6889215770da2c8980c4b612431db5cefd44..2e68206c4275886cf4353248c8084154fa49167c 100644 (file)
@@ -205,7 +205,7 @@ void wxComboBox::DoMoveWindow(int x, int y, int width, int height) {
     }
     else
     {
-        wxCoord wText = width - POPUPWIDTH;
+        wxCoord wText = width - POPUPWIDTH - MARGIN;
         m_text->SetSize(0, 0, wText, height);
         m_choice->SetSize(0 + wText + MARGIN, 0, POPUPWIDTH, -1);
     }