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:
3
cache/cyanine-custom.css
vendored
3
cache/cyanine-custom.css
vendored
@@ -202,5 +202,4 @@ margin: 15px;
|
||||
|
||||
.figureborder figure {
|
||||
border: 1px solid lightgray;
|
||||
}
|
||||
|
||||
}
|
@@ -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`;
|
||||
}
|
||||
|
Reference in New Issue
Block a user