skin: clamp compare tooltips to screen

This commit is contained in:
shagu
2018-12-05 18:28:20 +01:00
parent bf8bb3163e
commit b68857dfc5
+2
View File
@@ -130,6 +130,7 @@ pfUI:RegisterModule("skin", function ()
CreateBackdrop(ShoppingTooltip2, nil, nil, alpha)
CreateBackdrop(ItemRefTooltip, nil, nil, alpha)
ShoppingTooltip1:SetClampedToScreen(true)
ShoppingTooltip1:SetScript("OnShow", function()
local a, b, c, d, e = this:GetPoint()
local border = tonumber(C.appearance.border.default)
@@ -137,6 +138,7 @@ pfUI:RegisterModule("skin", function ()
if a then this:SetPoint(a, b, c, d, e) end
end)
ShoppingTooltip2:SetClampedToScreen(true)
ShoppingTooltip2:SetScript("OnShow", function()
local a, b, c, d, e = this:GetPoint()
local border = tonumber(C.appearance.border.default)