From 6442bb8a1326cc8823648ff43ac3add5317881e9 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 4 Sep 2018 13:30:06 +0100 Subject: [PATCH] Set the JavaScript editor to full-screen --- editor/js/ui/editors/js.js | 2 +- nodes/core/core/80-function.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/js/ui/editors/js.js b/editor/js/ui/editors/js.js index cfb5a61c1..cc50ead2b 100644 --- a/editor/js/ui/editors/js.js +++ b/editor/js/ui/editors/js.js @@ -32,7 +32,7 @@ RED.editor.types._js = (function() { var trayOptions = { title: options.title, - width: "inherit", + width: options.width||"inherit", buttons: [ { id: "node-dialog-cancel", diff --git a/nodes/core/core/80-function.html b/nodes/core/core/80-function.html index e406e9d16..20b98fadc 100644 --- a/nodes/core/core/80-function.html +++ b/nodes/core/core/80-function.html @@ -126,6 +126,7 @@ var value = that.editor.getValue(); RED.editor.editJavaScript({ value: value, + width: "Infinity", cursor: that.editor.getCursorPosition(), complete: function(v,cursor) { that.editor.setValue(v, -1);