GameTooltip:Hide() |
|
if (button == "LeftButton") then |
|
-- Workaround for displays using generic frame references (thanks Adirelle) |
-- We basically create a custom frame (if it doesn't exist) to hold our menu and anchor it to the DO |
local anchorFrame = _G["Broker_ItemRack_MenuFrame"] |
if not anchorFrame then |
anchorFrame = CreateFrame("Frame", "Broker_ItemRack_MenuFrame") |
end |
|
anchorFrame:ClearAllPoints() |
anchorFrame:SetAllPoints(self) |
|
|
local tip1, frame, tip2 |
if self and self:GetName() then |
-- get anchor according to frame 'self' |
tip1, frame, tip2 = GetTipAnchor(self) |
-- get anchor according to parent |
elseif self:GetParent() and self:GetParent():GetName() then |
tip1, frame, tip2 = GetTipAnchor(self:GetParent()) |
end |
|
tip1, frame, tip2 = GetTipAnchor(anchorFrame) |
|
-- correct itemrack menu frame position |
if tip1 == "TOP" and tip2 == "BOTTOM" then |
tip1 = "TOPLEFT" |