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:
Sometime, it may not be able to dock a pane next to a notebook.
The problem is when calling DoDropFloatingPane, if the index of the notebook page in panes is smaller than the notebook, PaneHitTest will return the notebook page, and its dock info (e.g., dock_direction) is not correct to dock the pane.
defDoDropFloatingPane(self, docks, panes, target, pt):
...
screenPt=self._frame.ClientToScreen(pt)
paneInfo=self.PaneHitTest(panes, pt)
...
foriinrange(len(self._guides) -1, -1, -1):
...
ifdir==wx.ALL: # target is a single dock guidereturnself.DoDropLayer(docks, target, guide.dock_direction)
elifdir==wx.CENTER:
...
else:
drop_pane=Falsedrop_row=False# if the paneInfo is a notebook page, the following info may not be correctinsert_dir=paneInfo.dock_directioninsert_layer=paneInfo.dock_layerinsert_row=paneInfo.dock_rowinsert_pos=paneInfo.dock_pos
...
Looks like if we use the notebook pane (instead of the notebook page pane), the problem goes away.
defDoDropFloatingPane(self, docks, panes, target, pt):
...
foriinrange(len(self._guides) -1, -1, -1):
...
ifdir==wx.ALL: # target is a single dock guidereturnself.DoDropLayer(docks, target, guide.dock_direction)
elifdir==wx.CENTER:
...
else:
drop_pane=Falsedrop_row=FalseifpaneInfo.IsNotebookPage():
# use the notebook where paneInfo is inpaneInfo=GetNotebookRoot(panes, paneInfo.notebook_id)
# if the paneInfo is a notebook page, the following info may not be correctinsert_dir=paneInfo.dock_directioninsert_layer=paneInfo.dock_layerinsert_row=paneInfo.dock_rowinsert_pos=paneInfo.dock_pos
...
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:
Sometime, it may not be able to dock a pane next to a notebook.
The problem is when calling
DoDropFloatingPane
, if the index of the notebook page inpanes
is smaller than the notebook,PaneHitTest
will return the notebook page, and its dock info (e.g.,dock_direction
) is not correct to dock the pane.Looks like if we use the notebook pane (instead of the notebook page pane), the problem goes away.
The text was updated successfully, but these errors were encountered: