mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-21 11:50:49 +00:00
gui: use a more lean way to determine the width
Fixes different GetWidth() behaviour of scrollframes in tbc clients
This commit is contained in:
+2
-2
@@ -74,9 +74,9 @@ pfUI:RegisterModule("gui", function ()
|
|||||||
|
|
||||||
-- basic frame
|
-- basic frame
|
||||||
local frame = CreateFrame("Frame", nil, this)
|
local frame = CreateFrame("Frame", nil, this)
|
||||||
|
frame:SetWidth(this.parent:GetRight()-this.parent:GetLeft()-20)
|
||||||
frame:SetHeight(22)
|
frame:SetHeight(22)
|
||||||
frame:SetPoint("TOPLEFT", 5, (this.objectCount*-23)-5)
|
frame:SetPoint("TOPLEFT", this, "TOPLEFT", 5, (this.objectCount*-23)-5)
|
||||||
frame:SetWidth(this.parent:GetParent():GetWidth()/this.parent:GetEffectiveScale()-20)
|
|
||||||
|
|
||||||
-- populate search index
|
-- populate search index
|
||||||
if caption and this and this.GetParent and widget ~= "button" and widget ~= "header" then
|
if caption and this and this.GetParent and widget ~= "button" and widget ~= "header" then
|
||||||
|
|||||||
Reference in New Issue
Block a user