mirror of
https://github.com/brues-code/pfUI.git
synced 2026-11-03 17:36: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:
+1
-1
@@ -86,7 +86,7 @@ pfUI:RegisterModule("castbar", function ()
|
||||
-- Per-craft spark position: the current craft's share of the bar's width.
|
||||
-- Snaps back to the left edge each time StartTradeskillCraft restarts it.
|
||||
local function MoveSpark()
|
||||
local x = this.craft:GetElapsedPercent() * this.bar:GetWidth() - 1
|
||||
local x = this.craft:GetElapsedPercent() * this.bar:GetUnscaledWidth() - 1
|
||||
this.bar.spark:SetPoint("TOP", this.bar, "TOPLEFT", x, 0)
|
||||
this.bar.spark:SetPoint("BOTTOM", this.bar, "BOTTOMLEFT", x, 0)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user