This should fix #2410 - Widgets placed in the UltimateListControl are drawn in the wrong location
This commit is contained in:
Andrea Gavana
2024-09-05 14:29:09 +02:00
committed by GitHub
parent a87b02874e
commit 7168de5a9f

View File

@@ -4573,7 +4573,7 @@ class UltimateListLineData(object):
xa, ya = self._owner.CalcScrolledPosition((0, rect.y))
wndx += xa
if rect.height > ySize and not item._expandWin:
ya += (rect.height - ySize)/2
ya += (rect.height - ySize)//2
itemRect = wx.Rect(xOld-2*HEADER_OFFSET_X, rect.y, width-xSize-HEADER_OFFSET_X, rect.height)
if overflow: