From 5d0dce2c1954b78899fb74af23c7bbe455a2c488 Mon Sep 17 00:00:00 2001 From: purocean Date: Thu, 8 Aug 2019 18:10:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E5=BD=A2=E6=A0=B7=E5=BC=8F=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/plugins/DrawioPlugin.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/frontend/src/plugins/DrawioPlugin.js b/frontend/src/plugins/DrawioPlugin.js index 23da3404..f5fdf892 100644 --- a/frontend/src/plugins/DrawioPlugin.js +++ b/frontend/src/plugins/DrawioPlugin.js @@ -67,6 +67,7 @@ Plugin.load = async (el, repo, path) => { el.onload = function () { const resize = () => { this.height = this.contentDocument.documentElement.scrollHeight + 'px' + this.contentDocument.body.style.height = this.contentDocument.body.clientHeight + 'px' appVm.$bus.emit('resize') } @@ -83,7 +84,7 @@ Plugin.load = async (el, repo, path) => { el.srcdoc = ` ${div.outerHTML}