From 63da8b0fe7d50d0be4a06c4eb63562638a2541ca Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 12 Oct 2021 18:17:06 +0200 Subject: [PATCH] equip-compare: position of tooltips without owner --- mods/equip-compare.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mods/equip-compare.lua b/mods/equip-compare.lua index a399601..a93ca44 100644 --- a/mods/equip-compare.lua +++ b/mods/equip-compare.lua @@ -119,6 +119,13 @@ local function ShowCompare(tooltip) local anchor = x < GetScreenWidth() / 2 and "BOTTOMLEFT" or "BOTTOMRIGHT" local relative = x < GetScreenWidth() / 2 and "BOTTOMRIGHT" or "BOTTOMLEFT" + -- overwrite position for tooltips without owner + local pos, parent = tooltip:GetPoint() + if parent and parent == UIParent and pos == "BOTTOMRIGHT" then + anchor = "BOTTOMRIGHT" + relative = "BOTTOMLEFT" + end + -- first tooltip ShoppingTooltip1:SetOwner(tooltip, "ANCHOR_NONE"); ShoppingTooltip1:ClearAllPoints();