]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/slider.mm
more Unicode fixes
[wxWidgets.git] / src / cocoa / slider.mm
index 7e319e48446b3da55c54278e32e1579ba1770bba..f2fdeb9a83cb5e15e9261b6e6612f34e38e19379 100644 (file)
@@ -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;
 }