xpbar: update movables when position was set

This commit is contained in:
shagu
2020-04-18 12:57:12 +02:00
parent 1565e60f69
commit 27de7a9b49
+2
View File
@@ -37,6 +37,7 @@ pfUI:RegisterModule("xpbar", "vanilla:tbc", function ()
b:SetFrameStrata("BACKGROUND")
AlignToPosition(b, _G[anchor], position, default_border*3)
UpdateMovable(b, true)
CreateBackdrop(b)
CreateBackdropShadow(b)
@@ -81,6 +82,7 @@ pfUI:RegisterModule("xpbar", "vanilla:tbc", function ()
b:SetScript("OnEvent", function()
-- realign when entering world to ensure all frames got loaded
AlignToPosition(b, _G[anchor], position, default_border*3)
UpdateMovable(b, true)
-- set either experience, reputation or flex-rep handler
local mode = ( t == "XP" and UnitLevel("player") < MAX_LEVEL ) and "XP" or t == "REP" and "REP" or "FLEX"