X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a9a4f2295344414e2ee4e3ec27fa5292918dff27..39d0e65b6224f1307ede8a965eee122e707fd57e:/src/osx/cocoa/slider.mm diff --git a/src/osx/cocoa/slider.mm b/src/osx/cocoa/slider.mm index 08327c438f..3bab4cc06a 100644 --- a/src/osx/cocoa/slider.mm +++ b/src/osx/cocoa/slider.mm @@ -90,6 +90,13 @@ wxWidgetImplType* wxWidgetImpl::CreateSlider( wxWindowMac* wxpeer, long WXUNUSED(extraStyle)) { NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ; + if ( size == wxDefaultSize ) + { + if ( style & wxSL_VERTICAL ) + r.size.height = r.size.width * 2; + else + r.size.width = r.size.height * 2; + } wxNSSlider* v = [[wxNSSlider alloc] initWithFrame:r]; int tickMarks = 0;