X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a62fa17b1c342b5b1e1bb9b96373e170a9d8b6f..83e8b44cc0bf8a2a8f162c67162f9ed68accd15f:/src/mac/carbon/combobox.cpp diff --git a/src/mac/carbon/combobox.cpp b/src/mac/carbon/combobox.cpp index 0f0fbdc08a..d3f6965aa7 100644 --- a/src/mac/carbon/combobox.cpp +++ b/src/mac/carbon/combobox.cpp @@ -59,7 +59,6 @@ static const int TEXTFOCUSBORDER = 3 ; static const wxCoord MARGIN = 2; static const int TEXTFOCUSBORDER = 0 ; #endif -static const int POPUPHEIGHT = 23; // ---------------------------------------------------------------------------- @@ -119,7 +118,7 @@ protected: wxCommandEvent event( wxEVT_COMMAND_BUTTON_CLICKED, def->GetId() ); event.SetEventObject(def); def->Command(event); - } + } } return; @@ -395,7 +394,7 @@ bool wxComboBox::Create(wxWindow *parent, } // Needed because it is a wxControlWithItems - SetBestSize(size); + SetInitialSize(size); SetStringSelection(value); return true;