Skip to content

Commit

Permalink
Should fix #2410
Browse files Browse the repository at this point in the history
This should fix #2410 - Widgets placed in the UltimateListControl are drawn in the wrong location
  • Loading branch information
infinity77 committed Sep 5, 2024
1 parent a87b028 commit 7168de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wx/lib/agw/ultimatelistctrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -4573,7 +4573,7 @@ def DrawInReportMode(self, dc, line, rect, rectHL, highlighted, current, enabled
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:
Expand Down

0 comments on commit 7168de5

Please sign in to comment.