X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7cc284529a15939d7c720411a9766d013c0317f1..42c37decc53971441199dfe4d8adf7fb842b2336:/src/cocoa/spinbutt.mm diff --git a/src/cocoa/spinbutt.mm b/src/cocoa/spinbutt.mm index ff0c9d11bf..60d3cd59ef 100644 --- a/src/cocoa/spinbutt.mm +++ b/src/cocoa/spinbutt.mm @@ -30,10 +30,12 @@ bool wxSpinButton::Create(wxWindow *parent, wxWindowID winid, { if(!CreateControl(parent,winid,pos,size,style,wxDefaultValidator,name)) return false; - SetNSControl([[NSStepper alloc] initWithFrame: NSMakeRect(10,10,20,20)]); + SetNSControl([[NSStepper alloc] initWithFrame: MakeDefaultNSRect(size)]); [m_cocoaNSView release]; if(m_parent) m_parent->CocoaAddChild(this); + SetInitialFrameRect(pos,size); + return true; }