X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/470402b9966ec0c9b0011193cb82bd6baa4a98c5..00ea969c97188b12e7fc23d560a1d7b21d3bb048:/src/gtk/listbox.cpp diff --git a/src/gtk/listbox.cpp b/src/gtk/listbox.cpp index 1085290fa2..a6ec658364 100644 --- a/src/gtk/listbox.cpp +++ b/src/gtk/listbox.cpp @@ -465,7 +465,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; }