From: Stefan Csomor Date: Wed, 5 Dec 2001 20:39:32 +0000 (+0000) Subject: changed DoMoveWindow not to change the height of the spinbutton on mac X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3363eadf72621b0d2c5a1db545e0c2c5bf304de7 changed DoMoveWindow not to change the height of the spinbutton on mac git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/spinctlg.cpp b/src/generic/spinctlg.cpp index b48a075680..3488d1f074 100644 --- a/src/generic/spinctlg.cpp +++ b/src/generic/spinctlg.cpp @@ -228,7 +228,11 @@ void wxSpinCtrl::DoMoveWindow(int x, int y, int width, int height) wxCoord wText = width - sizeBtn.x; m_text->SetSize(x, y, wText, height); +#ifdef __WXMAC__ + m_btn->SetSize(x + wText + MARGIN, y, -1, -1); +#else m_btn->SetSize(x + wText + MARGIN, y, -1, height); +#endif } // ----------------------------------------------------------------------------