]> git.saurik.com Git - wxWidgets.git/commitdiff
fix initial best size of (check) list boxes under MSW
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 16 Dec 2008 13:59:04 +0000 (13:59 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 16 Dec 2008 13:59:04 +0000 (13:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/listbox.cpp

index 9252783bed0406b208a24047ddfa1aea529f7294..1c7c0b5785d4f741040d5dc3b44a64d8574acd81 100644 (file)
@@ -177,7 +177,8 @@ bool wxListBox::Create(wxWindow *parent,
         Append(choices[i]);
     }
 
-    // now we can compute our best size correctly, so do it if necessary
+    // now we can compute our best size correctly, so do it again
+    InvalidateBestSize();
     SetInitialSize(size);
 
     return true;