From: Václav Slavík Date: Sun, 7 Oct 2012 16:49:28 +0000 (+0000) Subject: Fix wxGenericCollapsiblePane to expand frame's size. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/47c82b4b9cfe1002ed142ae7315a1b0867c5fb17 Fix wxGenericCollapsiblePane to expand frame's size. 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 --- diff --git a/src/generic/collpaneg.cpp b/src/generic/collpaneg.cpp index dc9874f98c..d0fd7bfdb2 100644 --- a/src/generic/collpaneg.cpp +++ b/src/generic/collpaneg.cpp @@ -190,6 +190,8 @@ void wxGenericCollapsiblePane::Collapse(bool collapse) if ( IsCollapsed() == collapse ) return; + InvalidateBestSize(); + // update our state m_pPane->Show(!collapse);