From 929129e8adcdd81c0719b8b85299abe3a62e6567 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Mon, 23 Apr 2018 18:05:47 -0700 Subject: [PATCH] Makes CodeMirror Modal resizable --- .../code-mirror/modal/code-mirror-modal.directive.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/awx/ui/client/lib/components/code-mirror/modal/code-mirror-modal.directive.js b/awx/ui/client/lib/components/code-mirror/modal/code-mirror-modal.directive.js index 8899e28bdd..6a1837272c 100644 --- a/awx/ui/client/lib/components/code-mirror/modal/code-mirror-modal.directive.js +++ b/awx/ui/client/lib/components/code-mirror/modal/code-mirror-modal.directive.js @@ -43,6 +43,11 @@ function atCodeMirrorModalController ( ParseTypeChange(options); resize(); $(CodeMirrorModalID).on('hidden.bs.modal', $scope.closeFn); + $(`${CodeMirrorModalID} .modal-dialog`).resizable({ + minHeight: 523, + minWidth: 600 + }); + $(`${CodeMirrorModalID} .modal-dialog`).on('resize', resize); } vm.strings = strings;