From: Robin Dunn Date: Thu, 24 Mar 2005 20:37:48 +0000 (+0000) Subject: Delay some of the cascading resizes to work around a bug with defered X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f9a5ba047c2856bcecb9568573c6ae995f9eab8b?ds=sidebyside Delay some of the cascading resizes to work around a bug with defered resizes in wxMSW. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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) #----------------------------------------------------------------------