From: Alex Bligh Date: Wed, 5 Jul 2006 23:09:33 +0000 (+0000) Subject: wxAUI: maintain minimum size of panes across dock/undock. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5c62cb6c7dfce1fac3ec9ac23cfef8cd2a043214 wxAUI: maintain minimum size of panes across dock/undock. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/aui/floatpane.cpp b/src/aui/floatpane.cpp index 81df0b7422..0e0c1143eb 100644 --- a/src/aui/floatpane.cpp +++ b/src/aui/floatpane.cpp @@ -69,6 +69,9 @@ void wxFloatingPane::SetPaneWindow(const wxPaneInfo& pane) PaneBorder(false). Layer(0).Row(0).Position(0); + // Carry over the minimum size + SetMinSize(pane.window->GetMinSize()); + m_mgr.AddPane(m_pane_window, contained_pane); m_mgr.Update(); diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index 55933e04f0..94dbf0b22a 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -1158,7 +1158,8 @@ void wxFrameManager::LayoutAddPane(wxSizer* cont, else { sizer_item = vert_pane_sizer->Add(pane.window, 1, wxEXPAND); - vert_pane_sizer->SetItemMinSize(pane.window, 1, 1); + // Don't do this because it breaks the pane size in floating windows + // vert_pane_sizer->SetItemMinSize(pane.window, 1, 1); } part.type = wxDockUIPart::typePane;