Fixed small prob with wxSpinButton orientation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -161,7 +161,7 @@ void wxSpinButton::MacHandleControlClick( ControlHandle control , SInt16 control
|
|||||||
|
|
||||||
wxSize wxSpinButton::DoGetBestSize() const
|
wxSize wxSpinButton::DoGetBestSize() const
|
||||||
{
|
{
|
||||||
if ( (GetWindowStyle() & wxSP_VERTICAL) != 0 )
|
if ( (GetWindowStyle() & wxSP_HORIZONTAL) == 0 )
|
||||||
{
|
{
|
||||||
// vertical control
|
// vertical control
|
||||||
return wxSize(16,
|
return wxSize(16,
|
||||||
|
@@ -161,7 +161,7 @@ void wxSpinButton::MacHandleControlClick( ControlHandle control , SInt16 control
|
|||||||
|
|
||||||
wxSize wxSpinButton::DoGetBestSize() const
|
wxSize wxSpinButton::DoGetBestSize() const
|
||||||
{
|
{
|
||||||
if ( (GetWindowStyle() & wxSP_VERTICAL) != 0 )
|
if ( (GetWindowStyle() & wxSP_HORIZONTAL) == 0 )
|
||||||
{
|
{
|
||||||
// vertical control
|
// vertical control
|
||||||
return wxSize(16,
|
return wxSize(16,
|
||||||
|
Reference in New Issue
Block a user