]> git.saurik.com Git - wxWidgets.git/commitdiff
changed default size, because MacOS X was using the boundaries differently
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 5 Dec 2001 20:38:05 +0000 (20:38 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 5 Dec 2001 20:38:05 +0000 (20:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/spinbutt.cpp
src/mac/spinbutt.cpp

index cdf211ab43a1f67ac2370817eda5afd25cc1f04c..b396d675d0922d604dadc48ebe26fcf8ced9c469 100644 (file)
@@ -161,17 +161,6 @@ void wxSpinButton::MacHandleControlClick( ControlHandle control , SInt16 control
 
 wxSize wxSpinButton::DoGetBestSize() const
 {
-    if ( (GetWindowStyle() & wxSP_HORIZONTAL) == 0 )
-    {
-        // vertical control
-        return wxSize(16,
-                      2*16);
-    }
-    else
-    {
-        // horizontal control
-        return wxSize(2*16,
-                      16);
-    }
+  return wxSize(16,24);
 }
 
index cdf211ab43a1f67ac2370817eda5afd25cc1f04c..b396d675d0922d604dadc48ebe26fcf8ced9c469 100644 (file)
@@ -161,17 +161,6 @@ void wxSpinButton::MacHandleControlClick( ControlHandle control , SInt16 control
 
 wxSize wxSpinButton::DoGetBestSize() const
 {
-    if ( (GetWindowStyle() & wxSP_HORIZONTAL) == 0 )
-    {
-        // vertical control
-        return wxSize(16,
-                      2*16);
-    }
-    else
-    {
-        // horizontal control
-        return wxSize(2*16,
-                      16);
-    }
+  return wxSize(16,24);
 }