diff --git a/wx/lib/agw/aui/framemanager.py b/wx/lib/agw/aui/framemanager.py index c01bf9d1a..71880c46e 100644 --- a/wx/lib/agw/aui/framemanager.py +++ b/wx/lib/agw/aui/framemanager.py @@ -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)