From 8e0a2b426426249a8b2ba5d8125227a829fadc17 Mon Sep 17 00:00:00 2001 From: CPPAlien Date: Tue, 26 Nov 2019 14:17:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=A4=9A=E4=B8=80=E4=BA=9B=E5=8F=AF?= =?UTF-8?q?=E8=A6=86=E7=9B=96=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- painter.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/painter.js b/painter.js index 9bece41..07feebb 100644 --- a/painter.js +++ b/painter.js @@ -230,10 +230,15 @@ Component({ doView.css = Object.assign({}, doView.css, newVal.css) } } + if (newVal.rect) { + doView.rect = newVal.rect; + } if (newVal && newVal.url && doView.url && newVal.url !== doView.url) { downloader.download(newVal.url, this.properties.LRU).then((path) => { doView.originUrl = doView.url - doView.url = path + doView.url = path; + newVal.sHeight && (doView.sHeight = newVal.sHeight); + newVal.sWidth && (doView.sWidth = newVal.sWidth); this.reDraw(doView, callback, isMoving) }) } else {