]> git.saurik.com Git - wxWidgets.git/commitdiff
Delay some of the cascading resizes to work around a bug with defered
authorRobin Dunn <robin@alldunn.com>
Thu, 24 Mar 2005 20:37:48 +0000 (20:37 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 24 Mar 2005 20:37:48 +0000 (20:37 +0000)
resizes in wxMSW.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/multisash.py

index fbf721781666f7445c6f69e39ee092827a799d01..6be5e730aaba69358ca4a0477e8b2940167e2eea 100644 (file)
@@ -366,12 +366,17 @@ class MultiViewLeaf(wx.Window):
         return self.GetParent().CanSize(side,self)
 
     def OnSize(self,evt):
         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)
 
 #----------------------------------------------------------------------
 
 
 #----------------------------------------------------------------------