added private wxAUI_MGR_NO_DOCK_SIZE_LIMIT flag
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -67,6 +67,16 @@ DEFINE_EVENT_TYPE(wxEVT_AUI_RENDER)
|
|||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxAuiManagerEvent, wxEvent)
|
IMPLEMENT_DYNAMIC_CLASS(wxAuiManagerEvent, wxEvent)
|
||||||
|
|
||||||
|
|
||||||
|
// private manager flags (not yet on the public API)
|
||||||
|
enum wxAuiPrivateManagerOption
|
||||||
|
{
|
||||||
|
wxAUI_MGR_NO_DOCK_SIZE_LIMIT = 1 << 28,
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class wxPseudoTransparentFrame : public wxFrame
|
class wxPseudoTransparentFrame : public wxFrame
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -1915,12 +1925,15 @@ wxSizer* wxAuiManager::LayoutAll(wxAuiPaneInfoArray& panes,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// new dock's size may not be more than 1/3 of the frame size
|
if (!(m_flags & wxAUI_MGR_NO_DOCK_SIZE_LIMIT))
|
||||||
if (dock.IsHorizontal())
|
{
|
||||||
size = wxMin(size, cli_size.y/3);
|
// new dock's size may not be more than 1/3 of the frame size
|
||||||
else
|
if (dock.IsHorizontal())
|
||||||
size = wxMin(size, cli_size.x/3);
|
size = wxMin(size, cli_size.y/3);
|
||||||
|
else
|
||||||
|
size = wxMin(size, cli_size.x/3);
|
||||||
|
}
|
||||||
|
|
||||||
if (size < 10)
|
if (size < 10)
|
||||||
size = 10;
|
size = 10;
|
||||||
dock.size = size;
|
dock.size = size;
|
||||||
|
Reference in New Issue
Block a user