X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e6e839336c9f9a869d40b3c7ed212e6f6641d04f..f8bcb37d996a475f39de36230770a808827e2a0f:/src/gtk1/listbox.cpp diff --git a/src/gtk1/listbox.cpp b/src/gtk1/listbox.cpp index f9503fa3c4..2cf833d0ac 100644 --- a/src/gtk1/listbox.cpp +++ b/src/gtk1/listbox.cpp @@ -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; }