From: Robin Dunn Date: Mon, 7 Aug 2006 18:20:02 +0000 (+0000) Subject: Change Fit() back to using SetSize, not SetClientSize. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1736f021a83e2547fd5ca1272cb038f37c721481?ds=inline 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 --- diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index cecad5fa0d..e9d6e9eda1 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -396,7 +396,7 @@ void wxWindowBase::Fit() { if ( !GetChildren().empty() ) { - SetClientSize(GetBestSize()); + SetSize(GetBestSize()); } //else: do nothing if we have no children }