Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
fix: sheet menu position
Browse files Browse the repository at this point in the history
  • Loading branch information
btea committed Nov 13, 2020
1 parent 6579f59 commit a40f679
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/controllers/sheetBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});

Expand Down

0 comments on commit a40f679

Please sign in to comment.