From c9e16574277da3a5f1fcf53e19a49b350cdb6b3c Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Wed, 12 Jul 2017 14:13:09 +0200 Subject: [PATCH] wxAuiManagerUpdatePerspectiveCaptions() extended to reset floating sizes of non-resizable panels to allow resize on GUI changes across different versions. --- src/framemanager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/framemanager.cpp b/src/framemanager.cpp index 2d80f9e..c7d3413 100644 --- a/src/framemanager.cpp +++ b/src/framemanager.cpp @@ -84,6 +84,11 @@ bool WXEXTEND_API wxAuiManagerUpdatePerspectiveCaptions(wxAuiManager& mgr, wxStr pane.min_size = p.min_size; pane.max_size = p.max_size; + if ((pane.state & wxAuiPaneInfo::optionResizable) == 0) { + // Reset floating size to allow resize on GUI changes across different versions for non-resizeable panes. + pane.floating_size = p.floating_size; + } + // Re-generate and append pane info. result += mgr.SavePaneInfo(pane) + wxT('|'); }