skin: fix dropdown menu backdrop and orientation

This commit is contained in:
Artur Morozov
2019-05-19 10:12:27 +02:00
committed by shagu
parent 3e86976ee9
commit 4fa2aea86f
2 changed files with 25 additions and 13 deletions
-3
View File
@@ -552,8 +552,6 @@ function pfUI.api.SkinDropDown(frame, cr, cg, cb)
local funcc = button:GetScript("OnClick")
button:SetScript("OnClick", function()
if funcc then funcc() end
UIDropDownMenu_JustifyText("RIGHT", this:GetParent())
DropDownList1:SetPoint("TOPLEFT", this:GetParent().backdrop, "BOTTOMLEFT", 0, -4)
local DropDownListWidth = DropDownList1:GetWidth()
local DropDownFrameWidth = this:GetParent().backdrop:GetWidth()
@@ -564,7 +562,6 @@ function pfUI.api.SkinDropDown(frame, cr, cg, cb)
_G["DropDownList1Button" .. i]:SetWidth(_G["DropDownList1Button" .. i]:GetWidth() + diff)
end
end
CreateBackdrop(DropDownList1Backdrop, nil, true, .8)
end)
frame.button = button