Merge pull request #2447 from tianzhuqiao/agw_aui_minimize_pane

Fix AuiManager pane minimizing issue.
This commit is contained in:
Scott Talbert
2024-11-14 20:30:01 -05:00
committed by GitHub

View File

@@ -9519,17 +9519,17 @@ class AuiManager(wx.EvtHandler):
elif self._has_maximized:
self.RestoreMaximizedPane()
# reorder for dropping to a new notebook
# (caution: this code breaks the reference!)
tempPaneInfo = self.CopyTarget(paneInfo)
self._panes.remove(paneInfo)
self._panes.append(tempPaneInfo)
if ret:
# reorder for dropping to a new notebook
# (caution: this code breaks the reference!)
tempPaneInfo = self.CopyTarget(paneInfo)
self._panes.remove(paneInfo)
self._panes.append(tempPaneInfo)
self.Update()
if tempPaneInfo.IsFloating():
self.SnapPane(tempPaneInfo, tempPaneInfo.floating_pos, tempPaneInfo.floating_size, False)
if tempPaneInfo.IsFloating():
self.SnapPane(tempPaneInfo, tempPaneInfo.floating_pos, tempPaneInfo.floating_size, False)
self.HideHint()
ShowDockingGuides(self._guides, False)