From 03dc5fadefcef0fe2d3dde81611532d115eded30 Mon Sep 17 00:00:00 2001 From: Benjamin Williams Date: Fri, 20 Apr 2007 09:03:43 +0000 Subject: [PATCH] fixed bug when a fixed pane is resized inside a fixed dock git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/aui/framemanager.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index e758807ecc..ea05d8bbd7 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -1866,7 +1866,19 @@ wxSizer* wxAuiManager::LayoutAll(wxAuiPaneInfoArray& panes, // empty all docks out for (i = 0, dock_count = docks.GetCount(); i < dock_count; ++i) - docks.Item(i).panes.Empty(); + { + wxAuiDockInfo& dock = docks.Item(i); + + // empty out all panes, as they will be readded below + dock.panes.Empty(); + + if (dock.fixed) + { + // always reset fixed docks' sizes, because + // the contained windows may have been resized + dock.size = 0; + } + } // iterate through all known panes, filing each