X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2268569346a39bcff9b7ba734f85652a7bf4c2d9..9f54c187b027671bd956d6e5dc66387136441977:/wxPython/wx/lib/multisash.py?ds=sidebyside

diff --git a/wxPython/wx/lib/multisash.py b/wxPython/wx/lib/multisash.py
index fbf7217816..6be5e730aa 100644
--- a/wxPython/wx/lib/multisash.py
+++ b/wxPython/wx/lib/multisash.py
@@ -366,12 +366,17 @@ class MultiViewLeaf(wx.Window):
         return self.GetParent().CanSize(side,self)
 
     def OnSize(self,evt):
-        self.sizerHor.OnSize(evt)
-        self.sizerVer.OnSize(evt)
-        self.creatorHor.OnSize(evt)
-        self.creatorVer.OnSize(evt)
-        self.detail.OnSize(evt)
-        self.closer.OnSize(evt)
+        def doresize():
+            try:
+                self.sizerHor.OnSize(evt)
+                self.sizerVer.OnSize(evt)
+                self.creatorHor.OnSize(evt)
+                self.creatorVer.OnSize(evt)
+                self.detail.OnSize(evt)
+                self.closer.OnSize(evt)
+            except:
+                pass
+        wx.CallAfter(doresize)
 
 #----------------------------------------------------------------------