mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-21 06:19:36 +08:00
Don't forcible reset item min size to (1,1) in wxAUI
This had been already done once back in5c62cb6c7d(wxAUI: maintain minimum size of panes across dock/undock., 2006-07-05) before being added back indec588bd6e(reverted an earlier patch that was causing problems, 2006-07-08) but it's not clear at all what kind of problems not doing this was causing, while it's very clear that doing this results in problems due to the window minimum size not being respected. Try (un?)reverting this one more time: if we run into problems due to this commit and have to undo it, hopefully these problems will at least be documented in a comment and/or commit message this time.
This commit is contained in:
@@ -1831,10 +1831,6 @@ void wxAuiManager::LayoutAddPane(wxSizer* cont,
|
||||
else
|
||||
{
|
||||
sizer_item = vert_pane_sizer->Add(pane.window, 1, wxEXPAND);
|
||||
// Don't do this because it breaks the pane size in floating windows
|
||||
// BIW: Right now commenting this out is causing problems with
|
||||
// an mdi client window as the center pane.
|
||||
vert_pane_sizer->SetItemMinSize(pane.window, 1, 1);
|
||||
}
|
||||
|
||||
part.type = wxAuiDockUIPart::typePane;
|
||||
|
||||
Reference in New Issue
Block a user