X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e92ea6291662dd0044f4469bcea03e3040a48f7d..243f5c2d917b77474b6d159fc338ec669d70cc91:/src/cocoa/combobox.mm diff --git a/src/cocoa/combobox.mm b/src/cocoa/combobox.mm index eb3f4b104f..ae2b9015fd 100644 --- a/src/cocoa/combobox.mm +++ b/src/cocoa/combobox.mm @@ -41,12 +41,14 @@ bool wxComboBox::Create(wxWindow *parent, wxWindowID winid, return false; m_cocoaNSView = NULL; - SetNSTextField([[NSComboBox alloc] initWithFrame:NSMakeRect(0,0,30,30)]); + SetNSTextField([[NSComboBox alloc] initWithFrame:MakeDefaultNSRect(size)]); [m_cocoaNSView release]; [GetNSTextField() setStringValue:wxNSStringWithWxString(value.c_str())]; [GetNSControl() sizeToFit]; if(m_parent) m_parent->CocoaAddChild(this); + SetInitialFrameRect(pos,size); + return true; }