diff --git a/wx/lib/agw/customtreectrl.py b/wx/lib/agw/customtreectrl.py index d2e781f9..5f041979 100644 --- a/wx/lib/agw/customtreectrl.py +++ b/wx/lib/agw/customtreectrl.py @@ -5867,7 +5867,7 @@ class CustomTreeCtrl(wx.ScrolledWindow): if wx.Platform in ["__WXMSW__", "__WXMAC__"]: self.Update() else: - wx.SafeYield(onlyIfNeeded=True) + wx.SafeYield() # now scroll to the item item_y = item.GetY()