making sure min and max sizes can be overridden
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
c443ff6f53
commit
f1b1c779a9
@ -795,6 +795,8 @@ void wxWindowMac::DoMoveWindow(int x, int y, int width, int height)
|
||||
int actualX = x;
|
||||
int actualY = y;
|
||||
|
||||
#if 0
|
||||
// min and max sizes are only for sizers, not for explicit size setting
|
||||
if ((m_minWidth != -1) && (actualWidth < m_minWidth))
|
||||
actualWidth = m_minWidth;
|
||||
if ((m_minHeight != -1) && (actualHeight < m_minHeight))
|
||||
@ -803,6 +805,7 @@ void wxWindowMac::DoMoveWindow(int x, int y, int width, int height)
|
||||
actualWidth = m_maxWidth;
|
||||
if ((m_maxHeight != -1) && (actualHeight > m_maxHeight))
|
||||
actualHeight = m_maxHeight;
|
||||
#endif
|
||||
|
||||
bool doMove = false, doResize = false ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user