Don't use the window position as the x offset when painting the full
row highlight, always use zero. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1929,7 +1929,6 @@ class CustomTreeCtrl(wx.ScrolledWindow):
|
|||||||
# with associated widgets.
|
# with associated widgets.
|
||||||
self.SetFocus()
|
self.SetFocus()
|
||||||
|
|
||||||
return True
|
|
||||||
|
|
||||||
|
|
||||||
def OnDestroy(self, event):
|
def OnDestroy(self, event):
|
||||||
@@ -4249,7 +4248,7 @@ class CustomTreeCtrl(wx.ScrolledWindow):
|
|||||||
|
|
||||||
oldpen = dc.GetPen()
|
oldpen = dc.GetPen()
|
||||||
dc.SetPen(wx.TRANSPARENT_PEN)
|
dc.SetPen(wx.TRANSPARENT_PEN)
|
||||||
x, y = self.GetPosition()
|
x = 0
|
||||||
w, h = self.GetSize()
|
w, h = self.GetSize()
|
||||||
|
|
||||||
itemrect = wx.Rect(x, item.GetY()+offset, w, total_h-offset)
|
itemrect = wx.Rect(x, item.GetY()+offset, w, total_h-offset)
|
||||||
|
Reference in New Issue
Block a user