]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix wxGenericCollapsiblePane to expand frame's size.
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 7 Oct 2012 16:49:28 +0000 (16:49 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 7 Oct 2012 16:49:28 +0000 (16:49 +0000)
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

index dc9874f98cb2c41209bee432afb6a1aa90b8fda6..d0fd7bfdb235c7d978dab22afc6706d57158c9e9 100644 (file)
@@ -190,6 +190,8 @@ void wxGenericCollapsiblePane::Collapse(bool collapse)
     if ( IsCollapsed() == collapse )
         return;
 
+    InvalidateBestSize();
+
     // update our state
     m_pPane->Show(!collapse);