ui-widgets: use proper api call to create backdrop

This commit is contained in:
shagu
2018-10-14 22:21:18 +02:00
parent 6491cad004
commit aa023089ce
+2 -5
View File
@@ -85,11 +85,8 @@ function pfUI.api.CreateTabChild(self, title, bwidth, bheight, bottom, static)
end
end
local backdrop = CreateFrame("Frame", nil, child)
backdrop:SetFrameLevel(1)
backdrop:SetPoint("TOPLEFT", child, "TOPLEFT", -5, 5)
backdrop:SetPoint("BOTTOMRIGHT", child, "BOTTOMRIGHT", 5, -5)
CreateBackdrop(backdrop, nil, true)
CreateBackdrop(child)
SetAllPointsOffset(child.backdrop, child, -5,5)
local ret = scrollchild or child
ret.button = b