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
This commit is contained in:
Robert Roebling
2009-01-30 23:04:17 +00:00
parent 8a150a2430
commit fcdb954037

View File

@@ -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))