From d41cf181b64f67d0c094349623e72b413949cfbf Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 4 Apr 2019 15:48:06 +0200 Subject: [PATCH] skin: use hook script to update tooltips position --- skins/blizzard/tooltips.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skins/blizzard/tooltips.lua b/skins/blizzard/tooltips.lua index 53d84be8..4def39cf 100644 --- a/skins/blizzard/tooltips.lua +++ b/skins/blizzard/tooltips.lua @@ -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