fix monaco height (#7186)

This commit is contained in:
Diego Imbert
2025-11-20 15:37:34 +01:00
committed by GitHub
parent d6da4a32bf
commit 1b77e2eaaa
2 changed files with 2 additions and 2 deletions
@@ -494,7 +494,7 @@
const updateHeight = () => {
const contentHeight = Math.min(1000, editor.getContentHeight())
if (divEl) {
divEl.style.height = `${contentHeight + 2}px`
divEl.style.height = `${contentHeight}px`
}
try {
editor.layout({ width, height: contentHeight })
+1 -1
View File
@@ -291,4 +291,4 @@ export function keepModelAroundToAvoidDisposalOfWorkers() {
}
}
export let MONACO_Y_PADDING = 7
export let MONACO_Y_PADDING = 6.5