Change Fit() back to using SetSize, not SetClientSize.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-08-07 18:20:02 +00:00
parent 3742029648
commit 1736f021a8

View File

@@ -396,7 +396,7 @@ void wxWindowBase::Fit()
{
if ( !GetChildren().empty() )
{
SetClientSize(GetBestSize());
SetSize(GetBestSize());
}
//else: do nothing if we have no children
}