Fix scroll panes when using pfUI
I wish I could tell you why this is a problem
This commit is contained in:
@@ -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 = {}
|
||||
|
||||
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user