X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/010d343bb28bbfd7a702a3ac60be30d15e132ba3..42c37decc53971441199dfe4d8adf7fb842b2336:/src/cocoa/slider.mm?ds=sidebyside diff --git a/src/cocoa/slider.mm b/src/cocoa/slider.mm index 7e319e4844..f2fdeb9a83 100644 --- a/src/cocoa/slider.mm +++ b/src/cocoa/slider.mm @@ -29,10 +29,12 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID winid, { if(!CreateControl(parent,winid,pos,size,style,validator,name)) return false; - SetNSView([[NSView alloc] initWithFrame: NSMakeRect(10,10,20,20)]); + SetNSView([[NSView alloc] initWithFrame: MakeDefaultNSRect(size)]); [m_cocoaNSView release]; if(m_parent) m_parent->CocoaAddChild(this); + SetInitialFrameRect(pos,size); + return true; }