mirror of
https://github.com/brues-code/pfUI.git
synced 2026-11-03 01:16:56 +00:00
Frame sizes: measure anchor-sized regions with the unscaled getters
GetWidth/GetHeight return an anchor-sized region's size times its effective scale, so at any UI scale but 1 they disagreed with the sizes and offsets built from them. The craft spark, raid-marker name shortening, unit frame indicators, dropdown widening and the cooldown font's first size now read GetUnscaledWidth/GetUnscaledHeight. The combat log and the settings rows drop their GetRight()-GetLeft() workarounds for the same bug.
This commit is contained in:
+2
-2
@@ -85,7 +85,7 @@ local function SetupCooldown(cooldown)
|
||||
cooldown:SetReverse(kind == "aura")
|
||||
cooldown:SetMinimumCountdownDuration(kind == "spell" and tonumber(C.cooldown.threshold) * 1000 or 0)
|
||||
cooldown:SetCountdownFormatter(GetFormatter())
|
||||
UpdateFont(cooldown, cooldown:GetParent():GetHeight())
|
||||
UpdateFont(cooldown, cooldown:GetParent():GetUnscaledHeight())
|
||||
end
|
||||
|
||||
-- applies the "foreign" timers to another addon's cooldown. They only take
|
||||
@@ -107,7 +107,7 @@ local function SetupForeign(cooldown)
|
||||
|
||||
cooldown:SetMinimumCountdownDuration(tonumber(C.cooldown.threshold) * 1000)
|
||||
cooldown:SetCountdownFormatter(GetFormatter())
|
||||
UpdateFont(cooldown, (cooldown:GetParent() or cooldown):GetHeight())
|
||||
UpdateFont(cooldown, (cooldown:GetParent() or cooldown):GetUnscaledHeight())
|
||||
end
|
||||
|
||||
-- runs as a pfUI cooldown's timer starts: a timer with a total brings back
|
||||
|
||||
Reference in New Issue
Block a user