]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/listbox.cpp
Upport scrolling changes and mouse wheel changes.
[wxWidgets.git] / src / gtk1 / listbox.cpp
index f9503fa3c436aa8dbe80c264f9e94adbcede8d80..2cf833d0ace0b336c3001c94177d5478a0e61ecf 100644 (file)
@@ -20,9 +20,9 @@
     #include "wx/utils.h"
     #include "wx/settings.h"
     #include "wx/checklst.h"
+    #include "wx/arrstr.h"
 #endif
 
-#include "wx/arrstr.h"
 #include "wx/gtk1/private.h"
 
 #if wxUSE_TOOLTIPS
@@ -558,7 +558,7 @@ bool wxListBox::Create( wxWindow *parent, wxWindowID id,
     m_parent->DoAddChild( this );
 
     PostCreation(size);
-    SetBestSize(size); // need this too because this is a wxControlWithItems
+    SetInitialSize(size); // need this too because this is a wxControlWithItems
 
     return true;
 }