mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
fixes #2208
This commit is contained in:
@@ -4610,8 +4610,8 @@ class AuiNotebook(wx.Panel):
|
||||
# because there are two panes, always split them
|
||||
# equally
|
||||
split_size = self.GetClientSize()
|
||||
split_size.x /= 2
|
||||
split_size.y /= 2
|
||||
split_size.x //= 2
|
||||
split_size.y //= 2
|
||||
|
||||
# create a new tab frame
|
||||
new_tabs = TabFrame(self)
|
||||
@@ -4638,22 +4638,22 @@ class AuiNotebook(wx.Panel):
|
||||
if direction == wx.LEFT:
|
||||
|
||||
pane_info.Left()
|
||||
mouse_pt = wx.Point(0, cli_size.y/2)
|
||||
mouse_pt = wx.Point(0, cli_size.y//2)
|
||||
|
||||
elif direction == wx.RIGHT:
|
||||
|
||||
pane_info.Right()
|
||||
mouse_pt = wx.Point(cli_size.x, cli_size.y/2)
|
||||
mouse_pt = wx.Point(cli_size.x, cli_size.y//2)
|
||||
|
||||
elif direction == wx.TOP:
|
||||
|
||||
pane_info.Top()
|
||||
mouse_pt = wx.Point(cli_size.x/2, 0)
|
||||
mouse_pt = wx.Point(cli_size.x//2, 0)
|
||||
|
||||
elif direction == wx.BOTTOM:
|
||||
|
||||
pane_info.Bottom()
|
||||
mouse_pt = wx.Point(cli_size.x/2, cli_size.y)
|
||||
mouse_pt = wx.Point(cli_size.x//2, cli_size.y)
|
||||
|
||||
self._mgr.AddPane(new_tabs, pane_info, mouse_pt)
|
||||
self._mgr.Update()
|
||||
|
||||
Reference in New Issue
Block a user