Skip to content

Commit

Permalink
Merge pull request #2447 from tianzhuqiao/agw_aui_minimize_pane
Browse files Browse the repository at this point in the history
Fix AuiManager pane minimizing issue.
  • Loading branch information
swt2c authored Nov 15, 2024
2 parents 44fe243 + 4eb797e commit 6ec1db4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions wx/lib/agw/aui/framemanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -9519,17 +9519,17 @@ def OnLeftUp_DragFloatingPane(self, eventOrPt):
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)
Expand Down

0 comments on commit 6ec1db4

Please sign in to comment.