You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating system: MacOS 13.2.1 wxPython version & source: 4.2.0 Python version & source: 3.9.5
Description of the problem:
When drag a notebook page and dock it somewhere, it will not be able to be minimized.
The issues comes from the discrepancy between the paneinfo in AuiManager._panes and AuiManager._uiparts.
defOnLeftUp_DragFloatingPane(self, eventOrPt):
...
# here we change the paneinfo in _panes, but Update() may not be called# 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)
ifret:
self.Update()
iftempPaneInfo.IsFloating():
self.SnapPane(tempPaneInfo, tempPaneInfo.floating_pos, tempPaneInfo.floating_size, False)
...
Looks like if we move the "reorder" part in the if ret section, the problem goes away.
defOnLeftUp_DragFloatingPane(self, eventOrPt):
...
ifret:
# 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()
iftempPaneInfo.IsFloating():
self.SnapPane(tempPaneInfo, tempPaneInfo.floating_pos, tempPaneInfo.floating_size, False)
...
The text was updated successfully, but these errors were encountered:
Operating system: MacOS 13.2.1
wxPython version & source: 4.2.0
Python version & source: 3.9.5
Description of the problem:
When drag a notebook page and dock it somewhere, it will not be able to be minimized.
The issues comes from the discrepancy between the paneinfo in
AuiManager._panes
andAuiManager._uiparts
.Looks like if we move the "reorder" part in the
if ret
section, the problem goes away.The text was updated successfully, but these errors were encountered: