fix offset of widget
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4414,6 +4414,7 @@ class CustomTreeCtrl(wx.PyScrolledWindow):
|
||||
if wnd:
|
||||
wndx = wcheck + image_w + item.GetX() + text_w + 4
|
||||
xa, ya = self.CalcScrolledPosition((0, item.GetY()))
|
||||
wndx += xa
|
||||
if not wnd.IsShown():
|
||||
wnd.Show()
|
||||
if wnd.GetPosition() != (wndx, ya):
|
||||
|
Reference in New Issue
Block a user