mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
add editor maxheight back
This commit is contained in:
parent
bd30f14980
commit
f3270a2219
1 changed files with 1 additions and 0 deletions
|
|
@ -722,6 +722,7 @@ export const VoidCodeEditor = ({ initValue, language, maxHeight, showScrollbars
|
|||
if (parentNode) {
|
||||
// const height = Math.min(, MAX_HEIGHT);
|
||||
parentNode.style.height = `${height}px`;
|
||||
parentNode.style.maxHeight = `${MAX_HEIGHT}px`;
|
||||
editor.layout();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue