mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-22 16:02:24 +00:00
fix monaco height (#7186)
This commit is contained in:
@@ -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 })
|
||||
|
||||
@@ -291,4 +291,4 @@ export function keepModelAroundToAvoidDisposalOfWorkers() {
|
||||
}
|
||||
}
|
||||
|
||||
export let MONACO_Y_PADDING = 7
|
||||
export let MONACO_Y_PADDING = 6.5
|
||||
|
||||
Reference in New Issue
Block a user