Skip to content

Commit

Permalink
fix aui/auibook.py for issue wxWidgets#358
Browse files Browse the repository at this point in the history
  • Loading branch information
infinity77 committed Nov 5, 2017
1 parent e141c95 commit ad31041
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wx/lib/agw/aui/auibook.py
Expand Up @@ -4455,7 +4455,7 @@ def Split(self, page, direction):
dest_tabs.AddButton(clone.id, clone.location, clone.bitmap, clone.dis_bitmap)
# create a pane info structure with the information
# about where the pane should be added
pane_info = framemanager.AuiPaneInfo().Bottom().CaptionVisible(False)
pane_info = framemanager.AuiPaneInfo().Bottom().CaptionVisible(False).BestSize(self.CalculateNewSplitSize())

if direction == wx.LEFT:

Expand Down Expand Up @@ -5061,7 +5061,8 @@ def OnTabEndDrag(self, event):
new_tabs._tabs.SetArtProvider(self._tabs.GetArtProvider().Clone())
new_tabs._tabs.SetAGWFlags(self._agwFlags)

self._mgr.AddPane(new_tabs, framemanager.AuiPaneInfo().Bottom().CaptionVisible(False), mouse_client_pt)
self._mgr.AddPane(new_tabs, framemanager.AuiPaneInfo().Bottom().CaptionVisible(False).BestSize(self.CalculateNewSplitSize()),
mouse_client_pt)
self._mgr.Update()
dest_tabs = new_tabs._tabs

Expand Down

0 comments on commit ad31041

Please sign in to comment.