- Code: Select all
Index: src/aui/framemanager.cpp
===================================================================
--- src/aui/framemanager.cpp (revision 50326)
+++ src/aui/framemanager.cpp (working copy)
@@ -2269,11 +2269,13 @@
// of left docks, content area and right docks)
middle = new wxBoxSizer(wxHORIZONTAL);
+ bool middle_needed = false; //mn see if we have anything in the middle
// find any left docks in this layer
FindDocks(docks, wxAUI_DOCK_LEFT, layer, -1, arr);
if (!arr.IsEmpty())
- {
+ {
+ middle_needed = true;
for (row = 0, row_count = arr.GetCount(); row < row_count; ++row)
LayoutAddDock(middle, *arr.Item(row), uiparts, spacer_only);
}
@@ -2285,7 +2287,8 @@
// find any center docks
FindDocks(docks, wxAUI_DOCK_CENTER, -1, -1, arr);
if (!arr.IsEmpty())
- {
+ {
+ middle_needed = true;
for (row = 0,row_count = arr.GetCount(); row<row_count; ++row)
LayoutAddDock(middle, *arr.Item(row), uiparts, spacer_only);
}
@@ -2304,19 +2307,22 @@
}
}
else
- {
+ {
+ middle_needed = true;
middle->Add(old_cont, 1, wxEXPAND);
}
// find any right docks in this layer
FindDocks(docks, wxAUI_DOCK_RIGHT, layer, -1, arr);
if (!arr.IsEmpty())
- {
+ {
+ middle_needed = true;
for (row = arr.GetCount()-1; row >= 0; --row)
LayoutAddDock(middle, *arr.Item(row), uiparts, spacer_only);
}
- cont->Add(middle, 1, wxEXPAND);
+ if (middle_needed)
+ cont->Add(middle, 1, wxEXPAND);
Kirix Support Forums
BUG 1689464 - Maximize problem
2 posts
• Page 1 of 1
BUG 1689464 - Maximize problem
- NinjaNL
- Registered User
- Posts: 40
- Joined: Thu Jun 14, 2007 6:53 am
Re: BUG 1689464 - Maximize problem
http://sourceforge.net/tracker/index.php?func=detail&aid=1689464&group_id=9863&atid=109863
I should have put this link in the above message.
HTH
Mal
I should have put this link in the above message.
HTH
Mal
- NinjaNL
- Registered User
- Posts: 40
- Joined: Thu Jun 14, 2007 6:53 am
2 posts
· Page 1 of 1
Return to wxAUI Patches & Modifications