diff --git a/wx/lib/agw/aui/framemanager.py b/wx/lib/agw/aui/framemanager.py index 6fc54511e..0c5f56433 100644 --- a/wx/lib/agw/aui/framemanager.py +++ b/wx/lib/agw/aui/framemanager.py @@ -9370,7 +9370,7 @@ def OnMotion_DragFloatingPane(self, eventOrPt): notebookRoot = GetNotebookRoot(self._panes, paneInfo.notebook_id) - if not notebookRoot or not notebookRoot.IsDocked(): + if not notebookRoot or not notebookRoot.IsDocked() or not notebookRoot.IsShown(): continue rc = paneInfo.window.GetScreenRect()