skin: use hook script to update tooltips position

This commit is contained in:
shagu
2019-04-04 15:48:06 +02:00
parent 5d8ad8feea
commit d41cf181b6
+1 -1
View File
@@ -14,7 +14,7 @@ pfUI:RegisterSkin("Tooltips", function ()
for _, tooltip in pairs({ShoppingTooltip1, ShoppingTooltip2}) do
tooltip:SetClampedToScreen(true)
tooltip:SetScript("OnShow", function()
HookScript(tooltip, "OnShow", function()
local a, b, c, x, y = this:GetPoint()
if not x or x == 0 then x = (border*2) + ( x or 0 ) + 1 end
if a then this:SetPoint(a, b, c, x, y) end