From 51776c368550a5267276ba49425d1d3c7c062fa4 Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 18 Mar 2025 18:48:19 +0100 Subject: [PATCH] equip-compare: align compare tooltips at the top --- mods/equip-compare.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mods/equip-compare.lua b/mods/equip-compare.lua index 4622337..baea599 100644 --- a/mods/equip-compare.lua +++ b/mods/equip-compare.lua @@ -160,14 +160,14 @@ module.enable = function(self) -- determine screen part local x = GetCursorPosition() / UIParent:GetEffectiveScale() - local anchor = x < GetScreenWidth() / 2 and "BOTTOMLEFT" or "BOTTOMRIGHT" - local relative = x < GetScreenWidth() / 2 and "BOTTOMRIGHT" or "BOTTOMLEFT" + local anchor = x < GetScreenWidth() / 2 and "TOPLEFT" or "TOPRIGHT" + local relative = x < GetScreenWidth() / 2 and "TOPRIGHT" or "TOPLEFT" -- overwrite position for tooltips without owner local pos, parent = tooltip:GetPoint() - if parent and parent == UIParent and pos == "BOTTOMRIGHT" then - anchor = "BOTTOMRIGHT" - relative = "BOTTOMLEFT" + if parent and parent == UIParent and pos == "TOPRIGHT" then + anchor = "TOPRIGHT" + relative = "TOPLEFT" end -- first tooltip