Skip to content

Commit

Permalink
fix(postil): 修复批注鼠标悬浮显示时,大小和编辑状态不一致的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
cdswyda committed Nov 2, 2021
1 parent 4a5d2ab commit af4d166
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/postil.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit af4d166

Please sign in to comment.