From 47c82b4b9cfe1002ed142ae7315a1b0867c5fb17 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 7 Oct 2012 16:49:28 +0000 Subject: [PATCH] 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 --- src/generic/collpaneg.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.45.2