]> git.saurik.com Git - wxWidgets.git/commitdiff
fixes #13826
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 4 Jan 2012 07:54:00 +0000 (07:54 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 4 Jan 2012 07:54:00 +0000 (07:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/spinbutt.mm

index 907fac8b1439198155ef123a70b34e1d5c2b4210..e7c62980c19d02d587ab4b60852b2e466afed88f 100644 (file)
@@ -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;
 }