From 4618614b486406f17d549fbd7c3b079b301be287 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Wed, 10 Sep 2014 15:59:10 +0200 Subject: [PATCH] Reanchor the menu every time we show it --- Broker_Equipment.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Broker_Equipment.lua b/Broker_Equipment.lua index c3cfffb..987d322 100644 --- a/Broker_Equipment.lua +++ b/Broker_Equipment.lua @@ -153,8 +153,7 @@ function LDB:OnClick(button) if(button ~= 'RightButton' and GetNumEquipmentSets() > 0) then if(not Menu) then - Menu = CreateFrame('Frame', nil, self) - Menu:SetPoint('TOP', self, 'BOTTOM') + Menu = CreateFrame('Frame', nil, UIParent) Menu:SetBackdrop(BACKDROP) Menu:SetBackdropColor(0, 0, 0) Menu:SetScript('OnEnter', OnEnter) @@ -174,6 +173,8 @@ function LDB:OnClick(button) Menu:Hide() else UpdateMenu(self) + Menu:ClearAllPoints() + Menu:SetPoint('TOP', self, 'BOTTOM') Menu:Show() end -- 1.7.9.5