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:
@@ -396,7 +396,7 @@ void wxWindowBase::Fit()
|
|||||||
{
|
{
|
||||||
if ( !GetChildren().empty() )
|
if ( !GetChildren().empty() )
|
||||||
{
|
{
|
||||||
SetClientSize(GetBestSize());
|
SetSize(GetBestSize());
|
||||||
}
|
}
|
||||||
//else: do nothing if we have no children
|
//else: do nothing if we have no children
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user