Fix scroll panes when using pfUI

I wish I could tell you why this is a problem
This commit is contained in:
OldManAlpha
2025-06-27 11:13:54 -07:00
parent 9b14584b9d
commit 4d2e3a7d11
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -904,7 +904,7 @@ local methods = {
function M.new(parent, rows, columns)
local rt = CreateFrame('Frame', nil, parent)
rt.columns = columns
rt.ROW_HEIGHT = (parent:GetHeight() - HEAD_HEIGHT - HEAD_SPACE) / rows
rt.ROW_HEIGHT = ((parent:GetHeight() / parent:GetEffectiveScale()) - HEAD_HEIGHT - HEAD_SPACE) / rows
rt.expanded = {}
rt.handlers = {}
rt.sorts = {}
+1 -1
View File
@@ -65,7 +65,7 @@ function M.new(parent, on_click, selected)
local rows = T.acquire()
local row_index = 1
local max_height = content_frame:GetHeight()
local max_height = content_frame:GetHeight() / content_frame:GetEffectiveScale()
local total_height = 0
while total_height + ROW_HEIGHT < max_height do
local row = CreateFrame('Frame', nil, content_frame)
+1 -1
View File
@@ -269,7 +269,7 @@ function M.new(parent)
local st = CreateFrame('Frame', gui.unique_name(), parent)
st:SetAllPoints()
st.numRows = max(floor((parent:GetHeight() - HEAD_HEIGHT - HEAD_SPACE) / ROW_HEIGHT), 0)
st.numRows = max(floor(((parent:GetHeight() / parent:GetEffectiveScale()) - HEAD_HEIGHT - HEAD_SPACE) / ROW_HEIGHT), 0)
local contentFrame = CreateFrame('Frame', nil, st)
contentFrame:SetPoint('TOPLEFT', 0, 0)