skin: revert dropdownlist toggle hook

This hook was in conflict with Atlas
This commit is contained in:
shagu
2019-05-19 14:45:40 +02:00
parent daf464d443
commit 5abf87d2fd
-22
View File
@@ -61,28 +61,6 @@ pfUI:RegisterModule("skin", 20400, function ()
CreateBackdrop(_G["DropDownList"..i.."Backdrop"], nil, true, .8)
end
hooksecurefunc("ToggleDropDownMenu", function(level, value, dropDownFrame, anchorName, xOffset, yOffset)
if not dropDownFrame then dropDownFrame = this end
if not level then level = 1 end
local listFrame = _G["DropDownList"..level]
local point, relativeTo, relativePoint, xOffset, yOffset = listFrame:GetPoint()
if level == 1 then
if dropDownFrame.displayMode == "MENU" then return end
if point == "TOPLEFT" then
listFrame:SetPoint(point, this:GetParent().backdrop, relativePoint, 0, -4)
elseif point == "BOTTOMLEFT" then
listFrame:SetPoint(point, this:GetParent().backdrop, relativePoint, 0, 4)
end
else
if point == "TOPLEFT" then
listFrame:SetPoint(point, relativeTo, relativePoint, xOffset + 8, 0)
else
listFrame:SetPoint(point, relativeTo, relativePoint, xOffset - 4, 0)
end
end
end, 1)
if C.global.errors_limit == "1" then
UIErrorsFrame:SetHeight(25)
end