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:
parent
110fa1739c
commit
5c62cb6c7d
@ -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();
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user