From 2908080b52edae4e8a27924db19f0e2d972cc511 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Fri, 18 Sep 2020 16:39:15 -0400 Subject: [PATCH] Automatically resize CSS editor Closes T708 --- templates/user/collection.tmpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/user/collection.tmpl b/templates/user/collection.tmpl index 52d1934..73fb8a2 100644 --- a/templates/user/collection.tmpl +++ b/templates/user/collection.tmpl @@ -251,12 +251,15 @@ var $normalHandleEnv = document.getElementById('normal-handle-env'); var opt = { showLineNumbers: false, showPrintMargin: 0, + minLines: 10, + maxLines: 40, }; var theme = "ace/theme/chrome"; var cssEditor = ace.edit("css-editor"); cssEditor.setTheme(theme); cssEditor.session.setMode("ace/mode/css"); cssEditor.setOptions(opt); +cssEditor.resize(true); {{template "footer" .}}