summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d655523)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14112
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( height == -1 )
{
if ( sizeFlags & wxSIZE_AUTO_HEIGHT )
if ( height == -1 )
{
if ( sizeFlags & wxSIZE_AUTO_HEIGHT )
+
+ int maxWidth = GetMaxWidth(),
+ minWidth = GetMinWidth(),
+ maxHeight = GetMaxHeight(),
+ minHeight = GetMinHeight();
+
+ if ( minWidth != -1 && width < minWidth ) width = minWidth;
+ if ( maxWidth != -1 && width > maxWidth ) width = maxWidth;
+ if ( minHeight != -1 && height < minHeight ) height = minHeight;
+ if ( maxHeight != -1 && height > maxHeight ) height = maxHeight;
if ( m_wnd->x != x || m_wnd->y != y ||
(int)m_wnd->width != width || (int)m_wnd->height != height )
if ( m_wnd->x != x || m_wnd->y != y ||
(int)m_wnd->width != width || (int)m_wnd->height != height )