From: Robert Roebling Date: Fri, 30 Jan 2009 23:04:17 +0000 (+0000) Subject: Don't call SetMinSize() on the pane as this prevents GetBestSize() from ever calling... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fcdb954037be5fd49dcc6676d138b2f33a5d3752 Don't call SetMinSize() on the pane as this prevents GetBestSize() from ever calling DoGetBestSize() again git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/collpaneg.cpp b/src/generic/collpaneg.cpp index 85874c573f..25450bf9ce 100644 --- a/src/generic/collpaneg.cpp +++ b/src/generic/collpaneg.cpp @@ -160,7 +160,7 @@ wxString wxGenericCollapsiblePane::GetBtnLabel() const void wxGenericCollapsiblePane::OnStateChange(const wxSize& sz) { // minimal size has priority over the best size so set here our min size - SetMinSize(sz); +// SetMinSize(sz); SetSize(sz); if (this->HasFlag(wxCP_NO_TLW_RESIZE))