From af4d16690ddfaa8053777f02d83f5cc5e7bfe330 Mon Sep 17 00:00:00 2001 From: cdswyda Date: Tue, 2 Nov 2021 10:21:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(postil):=20=20=E4=BF=AE=E5=A4=8D=E6=89=B9?= =?UTF-8?q?=E6=B3=A8=E9=BC=A0=E6=A0=87=E6=82=AC=E6=B5=AE=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E5=A4=A7=E5=B0=8F=E5=92=8C=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E4=B8=8D=E4=B8=80=E8=87=B4=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/postil.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/postil.js b/src/controllers/postil.js index 5f75177db..c643a13ab 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);