mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
Merge pull request #2048 from komoto48g/feature-scrpnl
Add self-guard in scrolledpanel:_SetupAfter
This commit is contained in:
@@ -154,9 +154,10 @@ class ScrolledPanel(wx.ScrolledWindow):
|
||||
|
||||
|
||||
def _SetupAfter(self, scrollToTop):
|
||||
self.SetVirtualSize(self.GetBestVirtualSize())
|
||||
if scrollToTop:
|
||||
self.Scroll(0,0)
|
||||
if self:
|
||||
self.SetVirtualSize(self.GetBestVirtualSize())
|
||||
if scrollToTop:
|
||||
self.Scroll(0,0)
|
||||
|
||||
|
||||
def OnChildFocus(self, evt):
|
||||
|
||||
Reference in New Issue
Block a user