diff --git a/src/controllers/dataVerificationCtrl.js b/src/controllers/dataVerificationCtrl.js index de64c1888..d7791946c 100644 --- a/src/controllers/dataVerificationCtrl.js +++ b/src/controllers/dataVerificationCtrl.js @@ -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 = []; diff --git a/src/utils/util.js b/src/utils/util.js index bc0361470..132b6ae08 100644 --- a/src/utils/util.js +++ b/src/utils/util.js @@ -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 ";