From 5b5f9aa01d606cf4ef755f7d36828c81ef3e9f38 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 15 May 2017 16:26:42 +0100 Subject: [PATCH] Add 'none' placeholder for empty port label form --- editor/js/ui/editor.js | 89 +++++++++++++++++++++++++++++++---------- editor/sass/editor.scss | 21 ++++++++++ 2 files changed, 88 insertions(+), 22 deletions(-) diff --git a/editor/js/ui/editor.js b/editor/js/ui/editor.js index a027a4f3a..8d97d497a 100644 --- a/editor/js/ui/editor.js +++ b/editor/js/ui/editor.js @@ -563,14 +563,26 @@ RED.editor = (function() { var inputCount = node.inputs || node._def.inputs || 0; var children = inputsDiv.children(); - if (children.length < inputCount) { - for (i = children.length;i inputCount) { - for (i=inputCount;i inputCount) { + for (i=inputCount;i outputCount) { - for (i=outputCount;i outputCount) { + for (i=outputCount;i',{style:"margin: 5px 0px"}); - var id = "node-label-form-"+type+"-"+index; - $('