From a40f679fde6700c90cd66c66bb070afabb31fb83 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Fri, 13 Nov 2020 21:51:02 +0800 Subject: [PATCH] fix: sheet menu position --- src/controllers/sheetBar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controllers/sheetBar.js b/src/controllers/sheetBar.js index 4ecc87cc2..bafd920fe 100644 --- a/src/controllers/sheetBar.js +++ b/src/controllers/sheetBar.js @@ -451,7 +451,9 @@ export function initialSheetBar(){ let $t = $("#luckysheet-sheet-list"); - mouseclickposition($t, $(this).offset().left, $(this).offset().top - 12, "leftbottom"); + let left = $(this).offset().left - $('#' + Store.container).offset().left; + let bottom = $(this).height() + $('#luckysheet-sta-content').height() + 12; + $t.css({left: left + 'px', bottom: bottom + 'px'}).show(); $("#luckysheet-input-box").removeAttr("style"); });