X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7cd7bc23d574ea5ec62f1abea73eb363a9ea8126..7564225f8bff6e6c2ed27695836035fa85a81189:/src/mac/carbon/listbox.cpp diff --git a/src/mac/carbon/listbox.cpp b/src/mac/carbon/listbox.cpp index faf519d08a..1a50bd9dc7 100644 --- a/src/mac/carbon/listbox.cpp +++ b/src/mac/carbon/listbox.cpp @@ -16,15 +16,12 @@ #include "wx/listbox.h" #ifndef WX_PRECOMP - #include "wx/dynarray.h" #include "wx/log.h" #include "wx/intl.h" - #include "wx/app.h" #include "wx/utils.h" - #include "wx/button.h" #include "wx/settings.h" #include "wx/arrstr.h" - #include "wx/toplevel.h" + #include "wx/dcclient.h" #endif IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl) @@ -33,7 +30,6 @@ BEGIN_EVENT_TABLE(wxListBox, wxControl) END_EVENT_TABLE() #include "wx/mac/uma.h" -#include "wx/dynarray.h" // ============================================================================ // list box control implementation @@ -93,7 +89,7 @@ bool wxListBox::Create( InsertItems( n, choices, 0 ); // Needed because it is a wxControlWithItems - SetBestSize( size ); + SetInitialSize( size ); return true; }