From 916a96c961e1ef7033ec86d96f6ee7287bba548a Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 4 Jan 2012 07:54:00 +0000 Subject: [PATCH] fixes #13826 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/spinbutt.mm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/osx/cocoa/spinbutt.mm b/src/osx/cocoa/spinbutt.mm index 907fac8b14..e7c62980c1 100644 --- a/src/osx/cocoa/spinbutt.mm +++ b/src/osx/cocoa/spinbutt.mm @@ -111,9 +111,14 @@ wxWidgetImplType* wxWidgetImpl::CreateSpinButton( wxWindowMac* wxpeer, [v setMaxValue: maximum]; [v setIntValue: value]; - if ( style & wxSP_WRAP ) - [v setValueWraps:YES]; + if ( style & wxSP_HORIZONTAL ) + [v rotateByAngle:90.0]; + BOOL wrap = NO; + if ( style & wxSP_WRAP ) + wrap = YES; + [v setValueWraps:wrap]; + wxWidgetCocoaImpl* c = new wxSpinButtonCocoaImpl( wxpeer, v ); return c; } -- 2.45.2