diff --git a/gui/auction_listing.lua b/gui/auction_listing.lua index 3d6be9c..f27a260 100644 --- a/gui/auction_listing.lua +++ b/gui/auction_listing.lua @@ -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 = {} diff --git a/gui/item_listing.lua b/gui/item_listing.lua index 4a3214e..462b203 100644 --- a/gui/item_listing.lua +++ b/gui/item_listing.lua @@ -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) diff --git a/gui/listing.lua b/gui/listing.lua index 8ff46b6..445b4df 100644 --- a/gui/listing.lua +++ b/gui/listing.lua @@ -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)