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
This commit is contained in:
parent
deab0851ff
commit
03dc5fadef
@ -1866,7 +1866,19 @@ wxSizer* wxAuiManager::LayoutAll(wxAuiPaneInfoArray& panes,
|
|||||||
|
|
||||||
// empty all docks out
|
// empty all docks out
|
||||||
for (i = 0, dock_count = docks.GetCount(); i < dock_count; ++i)
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user