fixed RR's change of wxSizer::Fit to set client size (r50717) to not be completely broken; it no longer confuses client and window sizes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
920991eeb3
commit
02dc0099cb
@ -837,7 +837,7 @@ void wxSizer::DeleteWindows()
|
||||
wxSize wxSizer::Fit( wxWindow *window )
|
||||
{
|
||||
// take the min size by default and limit it by max size
|
||||
wxSize size = GetMinWindowSize(window);
|
||||
wxSize size = GetMinClientSize(window);
|
||||
|
||||
wxTopLevelWindow *tlw = wxDynamicCast(window, wxTopLevelWindow);
|
||||
if ( tlw )
|
||||
@ -878,7 +878,7 @@ wxSize wxSizer::Fit( wxWindow *window )
|
||||
}
|
||||
else
|
||||
{
|
||||
wxSize sizeMax = GetMaxWindowSize(window);
|
||||
wxSize sizeMax = GetMaxClientSize(window);
|
||||
|
||||
if ( sizeMax.x != wxDefaultCoord && size.x > sizeMax.x )
|
||||
size.x = sizeMax.x;
|
||||
|
Loading…
Reference in New Issue
Block a user