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
This commit is contained in:
@@ -228,7 +228,11 @@ void wxSpinCtrl::DoMoveWindow(int x, int y, int width, int height)
|
|||||||
|
|
||||||
wxCoord wText = width - sizeBtn.x;
|
wxCoord wText = width - sizeBtn.x;
|
||||||
m_text->SetSize(x, y, wText, height);
|
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);
|
m_btn->SetSize(x + wText + MARGIN, y, -1, height);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user