Skip to content

Commit c6a5978

Browse files
committed
use actual drawn y to draw controls
1 parent d0ad05c commit c6a5978

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Classes/CompareTab.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,9 +2019,8 @@ function CompareTabClass:LayoutConfigView(contentVP, compareEntry)
20192019
ci.primaryControl.y = contentVP.y + fixedHeaderHeight + rowY - self.scrollY
20202020
ci.compareControl.x = sectionAbsX + LAYOUT.configCol3
20212021
ci.compareControl.y = contentVP.y + fixedHeaderHeight + rowY - self.scrollY
2022-
local capturedRowY = rowY
20232022
local shownFn = function()
2024-
local ay = contentVP.y + fixedHeaderHeight + capturedRowY - self.scrollY
2023+
local ay = ci.primaryControl.y
20252024
return ay >= scrollTopAbs and ay + ctrlH <= scrollBottomAbs
20262025
and self.compareViewMode == "CONFIG" and self:GetActiveCompare() ~= nil
20272026
end

0 commit comments

Comments
 (0)