From: Stefan Csomor Date: Wed, 5 Dec 2001 20:38:05 +0000 (+0000) Subject: changed default size, because MacOS X was using the boundaries differently X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0f092804a2406ada66094d09bfc935d63e221d46 changed default size, because MacOS X was using the boundaries differently git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/spinbutt.cpp b/src/mac/carbon/spinbutt.cpp index cdf211ab43..b396d675d0 100644 --- a/src/mac/carbon/spinbutt.cpp +++ b/src/mac/carbon/spinbutt.cpp @@ -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); } diff --git a/src/mac/spinbutt.cpp b/src/mac/spinbutt.cpp index cdf211ab43..b396d675d0 100644 --- a/src/mac/spinbutt.cpp +++ b/src/mac/spinbutt.cpp @@ -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); }