From f1b1c779a93201210197a57a1882e81c988a80fd Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 14 Apr 2009 20:05:47 +0000 Subject: [PATCH] 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 --- src/osx/window_osx.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osx/window_osx.cpp b/src/osx/window_osx.cpp index da9e32a5e1..fb1040f88d 100644 --- a/src/osx/window_osx.cpp +++ b/src/osx/window_osx.cpp @@ -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 ; -- 2.45.2