Don't forcible reset item min size to (1,1) in wxAUI

This had been already done once back in 5c62cb6c7d (wxAUI: maintain
minimum size of panes across dock/undock., 2006-07-05) before being
added back in dec588bd6e (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:
Vadim Zeitlin
2025-11-30 01:49:04 +01:00
parent c3e0e79102
commit 7d87a3fc6c
-4
View File
@@ -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;