diff --git a/src/controllers/postil.js b/src/controllers/postil.js
index 5f75177..b5d2ccd 100644
--- a/src/controllers/postil.js
+++ b/src/controllers/postil.js
@@ -222,8 +222,8 @@ const luckysheetPostil = {
fromY = 2;
}
- let width = _this.defaultWidth * Store.zoomRatio
- let height = _this.defaultHeight * Store.zoomRatio
+ let width = postil["width"] == null ? _this.defaultWidth * Store.zoomRatio : postil["width"] * Store.zoomRatio;
+ let height = postil["height"] == null ? _this.defaultHeight * Store.zoomRatio : postil["height"] * Store.zoomRatio;
let size = _this.getArrowCanvasSize(fromX, fromY, toX, toY);
@@ -872,6 +872,9 @@ const luckysheetPostil = {
let value = $("#" + id).find(".formulaInputFocus").html().replaceAll('
', '\n').replaceAll(/<(.*)>.*?|<(.*) \/>/g, '').trim();
// Hook function
if(!method.createHookFunction('commentUpdateBefore',r,c,value)){
+ if (!Store.flowdata[r][c].ps.isshow) {
+ $("#" + id).remove();
+ }
return;
}
diff --git a/src/global/extend.js b/src/global/extend.js
index 0d9e09e..ad8f182 100644
--- a/src/global/extend.js
+++ b/src/global/extend.js
@@ -640,6 +640,7 @@ function luckysheetextendtable(type, index, value, direction, sheetIndex) {
for(let c = 0; c < d[0].length; c++){
let cell = curRow[c],
templateCell = cell ? {...cell, v: '', m: ''} : Store.defaultCell;
+ delete templateCell.ps;
row.push(templateCell);
}
var cellBorderConfig = [];
@@ -813,6 +814,7 @@ function luckysheetextendtable(type, index, value, direction, sheetIndex) {
for(let r = 0; r < d.length; r++){
let cell = curd[r][index],
templateCell = cell ? {...cell, v: '', m: ''} : Store.defaultCell;
+ delete templateCell.ps;
col.push(templateCell);
}
var cellBorderConfig = [];