Browse Source
Merge pull request #223 from btea/master
fix: sheet menu position
master
mengshukeji
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
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"); |
|
|
|
}); |
|
|
|
|
|
|
|
|