ui-widgets: force refresh dropdown backdrops

This commit is contained in:
shagu
2019-05-19 15:28:12 +02:00
parent 812d2d5f3b
commit b2ce08c525
+2 -1
View File
@@ -552,7 +552,6 @@ function pfUI.api.SkinDropDown(frame, cr, cg, cb)
local funcc = button:GetScript("OnClick")
button:SetScript("OnClick", function()
if funcc then funcc() end
local DropDownListWidth = DropDownList1:GetWidth()
local DropDownFrameWidth = this:GetParent().backdrop:GetWidth()
if DropDownListWidth < DropDownFrameWidth then
@@ -562,6 +561,8 @@ 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