From 2e7ca91ea50cec26efa099d1547a0d8774d85794 Mon Sep 17 00:00:00 2001 From: cuixiping Date: Tue, 7 Jan 2020 16:41:49 +0800 Subject: [PATCH] Fix: popup position is wrong sometimes --- editor/svg-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index ec9b0c22..74c194a3 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -2945,7 +2945,6 @@ editor.init = function () { } let timer; - const pos = $(showSel).position(); // Clicking the "show" icon should set the current mode shower.mousedown(function (evt) { @@ -2953,6 +2952,7 @@ editor.init = function () { return false; } const holder = $(holdSel); + const pos = $(showSel).position(); const l = pos.left + 34; const w = holder.width() * -1; const time = holder.data('shown_popop') ? 200 : 0;