1
0
mirror of https://github.com/typemill/typemill.git synced 2025-08-05 05:37:45 +02:00

Fix codeara again

This commit is contained in:
trendschau
2024-06-14 19:51:34 +02:00
parent 74ec6d5cc9
commit 77bc0a364c
2 changed files with 3 additions and 4 deletions

View File

@@ -202,5 +202,4 @@ margin: 15px;
.figureborder figure {
border: 1px solid lightgray;
}
}

View File

@@ -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`;
}