From a009cb990c04281f3a2dc8b76a6f5972e76647c3 Mon Sep 17 00:00:00 2001 From: John Langone Date: Thu, 18 Jun 2020 15:55:10 -0400 Subject: [PATCH] Minimap should lock correctly to ElvUI Minimap --- Modules/MinimapIcon.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/MinimapIcon.lua b/Modules/MinimapIcon.lua index 57727fa..df2f261 100644 --- a/Modules/MinimapIcon.lua +++ b/Modules/MinimapIcon.lua @@ -324,8 +324,8 @@ local function createMinimapIcon() local minimapShape = _G.GetMinimapShape and _G.GetMinimapShape() or 'ROUND'; -- borrowed from LibDBIcon-1.0 local quadTable = minimapShapes[minimapShape] - local w = (_G.Minimap:GetWidth() / 2) + self:GetWidth() / 4 - local h = (_G.Minimap:GetHeight() / 2) + self:GetWidth() / 4 + local w = (_G.Minimap:GetWidth() / 2) + 5 + local h = (_G.Minimap:GetHeight() / 2) + 5 if quadTable[q] then x, y = x*w, y*h else