From 64d0a548cb39e61ea3749605cb80768c3f1e10bf Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 16 Jun 2021 03:20:33 -0700 Subject: [PATCH] crmMonaco - Accept option to specify relative height --- ang/crmMonaco.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ang/crmMonaco.js b/ang/crmMonaco.js index 15ff3747d4..156753a0b7 100644 --- a/ang/crmMonaco.js +++ b/ang/crmMonaco.js @@ -41,6 +41,9 @@ } }); + heightPct = options.crmHeightPct || heightPct; + delete options.crmHeightPct; + var editorEl = $el.find('.crm-monaco-container'); editorEl.css({height: Math.round(heightPct * $(window).height())}); editor = monaco.editor.create(editorEl[0], options); -- 2.25.1