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
This commit is contained in:
@@ -69,6 +69,9 @@ void wxFloatingPane::SetPaneWindow(const wxPaneInfo& pane)
|
|||||||
PaneBorder(false).
|
PaneBorder(false).
|
||||||
Layer(0).Row(0).Position(0);
|
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.AddPane(m_pane_window, contained_pane);
|
||||||
m_mgr.Update();
|
m_mgr.Update();
|
||||||
|
|
||||||
|
@@ -1158,7 +1158,8 @@ void wxFrameManager::LayoutAddPane(wxSizer* cont,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
sizer_item = vert_pane_sizer->Add(pane.window, 1, wxEXPAND);
|
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;
|
part.type = wxDockUIPart::typePane;
|
||||||
|
Reference in New Issue
Block a user