From 2b8696f0eb4f95ef9b343dc1ab833f479475c1ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?sunsonliu=28=E5=88=98=E9=98=B3=29?= Date: Sun, 22 Dec 2024 17:36:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20#1009=20=E8=B0=83=E6=95=B4=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=99=A8=E5=88=B7=E6=96=B0=E6=97=B6=E6=9C=BA=EF=BC=8C?= =?UTF-8?q?=E5=8F=AA=E6=9C=89=E7=BC=96=E8=BE=91=E5=99=A8=E5=A4=84=E4=BA=8E?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=8A=B6=E6=80=81=E6=97=B6=E6=89=8D=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Editor.js b/src/Editor.js index a8e4f77e..3aece364 100644 --- a/src/Editor.js +++ b/src/Editor.js @@ -572,7 +572,7 @@ export default class Editor { this.domWidth = this.getEditorDom().offsetWidth; // 监听编辑器宽度变化 const resizeObserver = new ResizeObserver((entries) => { - if (this.getEditorDom().offsetWidth !== this.domWidth) { + if (this.getEditorDom().offsetWidth !== this.domWidth && this.$cherry.status.editor === 'show') { this.domWidth = this.getEditorDom().offsetWidth; this.editor.refresh(); }