git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71843
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
hints.min_width = minSize.x - m_decorSize.x;
if (minSize.y > m_decorSize.y)
hints.min_height = minSize.y - m_decorSize.y;
hints.min_width = minSize.x - m_decorSize.x;
if (minSize.y > m_decorSize.y)
hints.min_height = minSize.y - m_decorSize.y;
- if (maxSize.x > m_decorSize.x)
hints.max_width = maxSize.x - m_decorSize.x;
hints.max_width = maxSize.x - m_decorSize.x;
- if (maxSize.y > m_decorSize.y)
+ if (hints.max_width < hints.min_width)
+ hints.max_width = hints.min_width;
+ }
+ if (maxSize.y > 0)
+ {
hints.max_height = maxSize.y - m_decorSize.y;
hints.max_height = maxSize.y - m_decorSize.y;
+ if (hints.max_height < hints.min_height)
+ hints.max_height = hints.min_height;
+ }
if (incW > 0 || incH > 0)
{
hints_mask |= GDK_HINT_RESIZE_INC;
if (incW > 0 || incH > 0)
{
hints_mask |= GDK_HINT_RESIZE_INC;