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:
@@ -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))
|
||||
|
Reference in New Issue
Block a user