actionbar: reload hover position after cvar update

This commit is contained in:
shagu
2016-12-07 20:13:16 +01:00
parent 77bbf8cb6b
commit 2cd7f2301e
+7 -3
View File
@@ -415,9 +415,13 @@ pfUI:RegisterModule("actionbar", function ()
frame.hover:SetParent(frame)
frame.hover:SetPoint("TOPLEFT", frame, "TOPLEFT", -5, 5)
frame.hover:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", 5, -5)
frame.hover:SetFrameStrata("BACKGROUND")
frame.hover:RegisterEvent("CVAR_UPDATE")
frame.hover:SetScript("OnEvent", function()
this.x = nil
end)
frame.hover:SetScript("OnUpdate", function()
-- reset frame positions to UIParent
if not this.resetpos then
@@ -436,10 +440,10 @@ pfUI:RegisterModule("actionbar", function ()
local fymax = fy-this:GetHeight()
this.x = fx
this.xmax = fxmax
this.xmax = floor(fxmax)
this.y = fy
this.ymax = fymax
this.ymax = floor(fymax)
end
-- get cursor position