wxSizer::Fit calls SetClientSize, not SetSize. This fixes the tool window
in the Life demo. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -408,7 +408,7 @@ void wxSizer::Fit( wxWindow *window )
|
|||||||
else
|
else
|
||||||
size = GetMinWindowSize( window );
|
size = GetMinWindowSize( window );
|
||||||
|
|
||||||
window->SetSize( size );
|
window->SetClientSize( size );
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxSizer::Layout()
|
void wxSizer::Layout()
|
||||||
|
Reference in New Issue
Block a user