diff --git a/webapp/src/Twig/TwigExtension.php b/webapp/src/Twig/TwigExtension.php index f66a0acff9..2ea4b2388b 100644 --- a/webapp/src/Twig/TwigExtension.php +++ b/webapp/src/Twig/TwigExtension.php @@ -849,6 +849,10 @@ public function codeEditor( const element = document.getElementById('__EDITOR__'); const content = element.textContent; element.textContent = ''; + // Adjust editor height to fit window. + const height = $(window).height() - 400; + element.style.height = height + 'px'; + const editor = monaco.editor.create(element, { value: content, scrollbar: {