From 933c73dff6abc032abf7104470131f1745f4bf8b Mon Sep 17 00:00:00 2001
From: qiang <guoshengqiang@live.com>
Date: Wed, 25 Sep 2019 12:25:13 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20uni.canvasToTempFilePath?=
 =?UTF-8?q?=20=E5=AE=BD=E9=AB=98=E9=BB=98=E8=AE=A4=E5=80=BC=E4=B8=8D?=
 =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E7=9A=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/core/view/components/canvas/index.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/core/view/components/canvas/index.vue b/src/core/view/components/canvas/index.vue
index 4f1ad7d4a2..9f7c357f0e 100644
--- a/src/core/view/components/canvas/index.vue
+++ b/src/core/view/components/canvas/index.vue
@@ -386,10 +386,10 @@ export default {
       var imgData
       var canvas = this.$refs.canvas
       if (!width) {
-        width = canvas.offsetWidth
+        width = canvas.offsetWidth - x
       }
       if (!height) {
-        height = canvas.offsetHeight
+        height = canvas.offsetHeight - y
       }
       try {
         const newCanvas = document.createElement('canvas')
-- 
GitLab