From 77bc0a364c3570ee61903dd23c93a0c9a3249e65 Mon Sep 17 00:00:00 2001 From: trendschau Date: Fri, 14 Jun 2024 19:51:34 +0200 Subject: [PATCH] Fix codeara again --- cache/cyanine-custom.css | 3 +-- system/typemill/author/js/vue-forms.js | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cache/cyanine-custom.css b/cache/cyanine-custom.css index 5bc7cc2..e3dd6f5 100644 --- a/cache/cyanine-custom.css +++ b/cache/cyanine-custom.css @@ -202,5 +202,4 @@ margin: 15px; .figureborder figure { border: 1px solid lightgray; -} - +} \ No newline at end of file diff --git a/system/typemill/author/js/vue-forms.js b/system/typemill/author/js/vue-forms.js index 35db691..fd375ba 100644 --- a/system/typemill/author/js/vue-forms.js +++ b/system/typemill/author/js/vue-forms.js @@ -109,12 +109,12 @@ app.component('component-codearea', { this.resizeCodearea(); }); }, - resizeCodearea() { + resizeCodeareaWork() { let codeeditor = this.$refs.editor; const scrollPosition = codeeditor.scrollTop; // Store the current scroll position window.requestAnimationFrame(() => { - if (codeeditor.scrollHeight > codeeditor.clientHeight) + if (codeeditor.scrollHeight !== codeeditor.clientHeight) { codeeditor.style.height = `${codeeditor.scrollHeight + 2}px`; }