1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Set the JavaScript editor to full-screen

This commit is contained in:
Nick O'Leary 2018-09-04 13:30:06 +01:00
parent f29d7c9252
commit 6442bb8a13
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
2 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,7 @@ RED.editor.types._js = (function() {
var trayOptions = { var trayOptions = {
title: options.title, title: options.title,
width: "inherit", width: options.width||"inherit",
buttons: [ buttons: [
{ {
id: "node-dialog-cancel", id: "node-dialog-cancel",

View File

@ -126,6 +126,7 @@
var value = that.editor.getValue(); var value = that.editor.getValue();
RED.editor.editJavaScript({ RED.editor.editJavaScript({
value: value, value: value,
width: "Infinity",
cursor: that.editor.getCursorPosition(), cursor: that.editor.getCursorPosition(),
complete: function(v,cursor) { complete: function(v,cursor) {
that.editor.setValue(v, -1); that.editor.setValue(v, -1);