wxGenericCollapsiblePane::DoGetBestSize() is dynamic, returning
different values for collapsed and open states. Therefore the control
must invalidate best sizes cache every time its state changes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72625
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( IsCollapsed() == collapse )
return;
if ( IsCollapsed() == collapse )
return;
+ InvalidateBestSize();
+
// update our state
m_pPane->Show(!collapse);
// update our state
m_pPane->Show(!collapse);