git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45551
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// empty all docks out
for (i = 0, dock_count = docks.GetCount(); i < dock_count; ++i)
// 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
// iterate through all known panes, filing each