From 27de7a9b49aa5eaefa5759c2ba57ab52322f4db8 Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 18 Apr 2020 12:57:12 +0200 Subject: [PATCH] xpbar: update movables when position was set --- modules/xpbar.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/xpbar.lua b/modules/xpbar.lua index 765f12a3..fec79bbb 100644 --- a/modules/xpbar.lua +++ b/modules/xpbar.lua @@ -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"