no sizer, contstraints, or children, otherwise use current size as before.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26826
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
return wxSize(maxX, maxY);
}
- else // has children
+ else // ! has children
{
- // for a generic window there is no natural best size - just use the
- // current size
- return GetSize();
+ // for a generic window there is no natural best size - just use either the
+ // minimum size if there is one, or the current size
+ if ( GetMinSize().IsFullySpecified() )
+ return GetMinSize();
+ else
+ return GetSize();
}
}