From 3363eadf72621b0d2c5a1db545e0c2c5bf304de7 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 5 Dec 2001 20:39:32 +0000 Subject: [PATCH] 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 --- src/generic/spinctlg.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 } // ---------------------------------------------------------------------------- -- 2.45.2