Permalink
Browse files

Merge pull request #593 from infinity77/master

fix aui/auibook.py for issue #358
  • Loading branch information...
RobinD42 committed Nov 9, 2017
2 parents 90cdcd8 + 0d8a36b commit 0aa026ab3e776bb72fa4afbe5427c4a9945f9ebd
Showing with 3 additions and 2 deletions.
  1. +3 −2 wx/lib/agw/aui/auibook.py
@@ -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:
@@ -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

0 comments on commit 0aa026a

Please sign in to comment.