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

Resize change node rules when they are added

This commit is contained in:
Nick O'Leary 2016-04-13 18:09:41 -07:00
parent 44dc37ef6d
commit e92241bf97

View File

@ -216,6 +216,9 @@
toValue.typedInput('type',rule.tot); toValue.typedInput('type',rule.tot);
selectField.change(); selectField.change();
var newWidth = $("#node-input-rule-container").width();
container.find('.red-ui-typedInput').typedInput("width",newWidth-180);
$("#node-input-rule-container").append(container); $("#node-input-rule-container").append(container);
} }
$("#node-input-add-rule").click(function() { $("#node-input-add-rule").click(function() {