Skip to content

Commit ee3c2d1

Browse files
committed
fix drawing of item set dropdown in Items tab when using horizontal scroll
1 parent c6a5978 commit ee3c2d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Classes/CompareTab.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,7 @@ function CompareTabClass:Draw(viewPort, inputEvents)
16611661

16621662
local colWidth = m_max(m_floor(contentVP.width / 2), LAYOUT.itemsMinColWidth)
16631663
local itemSetLabelW = DrawStringWidth(16, "VAR", "^7Item set:") + 4
1664-
local scrollOffsetX = -(self.itemsScrollX or 0)
1664+
local scrollOffsetX = -((self.controls.itemsHScrollBar and self.controls.itemsHScrollBar.offset) or 0)
16651665

16661666
-- Item set dropdowns
16671667
local row1Y = contentVP.y + 34

0 commit comments

Comments
 (0)