Skip to content

Commit df18ec5

Browse files
committed
Add a better note for our own future sanity
1 parent 41d55ad commit df18ec5

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

modules/units/nameplates.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,12 @@ local function updateOnAdded(self)
8282
updateAnchors(self)
8383

8484
self.PetIcon:SetShown(UnitIsOtherPlayersPet(unit))
85-
C_Timer.After(0, GenerateClosure(self.Health.ForceUpdate, self.Health)) -- temp fix
85+
86+
-- we need to force-update the health sub-widgets one frame after they've been initialized by
87+
-- UAE because the game rendering engine will have incorrect sizes for them during creation with
88+
-- a custom scale (which we apply with our PixelPerfect method during spawn). Blizzard is aware
89+
-- of this bug, but they don't really have a solution for it.
90+
C_Timer.After(0, GenerateClosure(self.Health.ForceUpdate, self.Health))
8691
end
8792

8893
local function updateOnRemoved(self)

0 commit comments

Comments
 (0)