skin: check for existing anchor

This commit is contained in:
shagu
2017-04-04 10:10:31 +02:00
parent 9b6d746c6f
commit d158955eb3
+2 -2
View File
@@ -69,14 +69,14 @@ pfUI:RegisterModule("skin", function ()
local a, b, c, d, e = this:GetPoint()
local border = tonumber(C.appearance.border.default)
if d and d == 0 then d = (border*2)+d+1 end
this:SetPoint(a, b, c, d, e)
if a then this:SetPoint(a, b, c, d, e) end
end)
ShoppingTooltip2:SetScript("OnShow", function()
local a, b, c, d, e = this:GetPoint()
local border = tonumber(C.appearance.border.default)
if not d or d == 0 then d = (border*2)+d+1 end
this:SetPoint(a, b, c, d, e)
if a then this:SetPoint(a, b, c, d, e) end
end)
CreateBackdrop(TicketStatusFrame)