From aa023089ce538c87501999afa1ae7bf2589dfc60 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 14 Oct 2018 22:21:18 +0200 Subject: [PATCH] ui-widgets: use proper api call to create backdrop --- api/ui-widgets.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/api/ui-widgets.lua b/api/ui-widgets.lua index 9fe19353..a5237d74 100644 --- a/api/ui-widgets.lua +++ b/api/ui-widgets.lua @@ -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