From c1a2d3c500197f6d335169223e534dde70597ea0 Mon Sep 17 00:00:00 2001 From: Maliface Date: Mon, 30 Oct 2023 16:39:26 +0100 Subject: [PATCH] minify test --- hover-macro/hover-macro.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hover-macro/hover-macro.js b/hover-macro/hover-macro.js index 744774d..864e862 100644 --- a/hover-macro/hover-macro.js +++ b/hover-macro/hover-macro.js @@ -10,9 +10,8 @@ const summonTip = (txt, $cont, dir) => { $cont.append($tip); $tip.removeClass().wiki(txt); - const {height : h, width : w} = $tip[0].getBoundingClientRect(), mrg = 4, contRect = $cont[0].getBoundingClientRect(); - - contRect.center = {y :contRect.top+contRect.height/2, x : contRect.left+contRect.width/2}; + const {height : h, width : w} = $tip[0].getBoundingClientRect(), mrg = 4, contRect = $cont[0].getBoundingClientRect(); + contRect.center = {y :contRect.top+contRect.height/2, x : contRect.left+contRect.width/2}; const positions = { up : {at : [contRect.center.x, contRect.top], stickout : {main : -(h+mrg), sec : w/2}},