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

Commit

Permalink
fix(bug): bug
Browse files Browse the repository at this point in the history
bug

fix #142 #132
  • Loading branch information
wpxp123456 committed Oct 29, 2020
1 parent 5adfc60 commit 0909f5e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/controllers/dataVerificationCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -1447,6 +1447,15 @@ const dataVerificationCtrl = {
'left': col_pre,
'top': row,
});

let myh = $("#luckysheet-dataVerification-dropdown-List").outerHeight();
let currentWinH = $("#luckysheet-cell-main")[0].scrollHeight;

if(row + myh > currentWinH - 42 - 6){
$("#luckysheet-dataVerification-dropdown-List").css({
'top': row_pre - myh,
})
}
},
getDropdownList: function(txt){
let list = [];
Expand Down
2 changes: 1 addition & 1 deletion src/utils/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ function luckysheetfontformat(format) {

//font-size/line-height
if (!format.fs) {
font += Store.luckysheetfontformat + "pt ";
font += Store.defaultFontSize + "pt ";
}
else {
font += Math.ceil(format.fs) + "pt ";
Expand Down

0 comments on commit 0909f5e

Please sign in to comment.