From df6a43ab6a9788fea684324b4ad0c214d7168e0d Mon Sep 17 00:00:00 2001 From: Rhys Yang Date: Fri, 13 Oct 2023 23:56:13 +0800 Subject: [PATCH] Update seedGen.js --- js/seedGen.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/seedGen.js b/js/seedGen.js index 321ac0d..2f3c640 100644 --- a/js/seedGen.js +++ b/js/seedGen.js @@ -126,7 +126,7 @@ class SeedControl { node.widgets_values[index] = ""; return ""; }; - // this.node.computeSize(); + this.node.computeSize(); } removeLastSeedValue() { if (!this.lastSeedValue) @@ -134,7 +134,7 @@ class SeedControl { this.lastSeedValue.inputEl.remove(); this.node.widgets.splice(this.node.widgets.indexOf(this.lastSeedValue), 1); this.lastSeedValue = null; - // this.node.computeSize(); + this.node.computeSize(); } } app.registerExtension({ @@ -145,7 +145,6 @@ app.registerExtension({ nodeType.prototype.onNodeCreated = function () { onNodeCreated ? onNodeCreated.apply(this, []) : undefined; this.seedControl = new SeedControl(this); - // Resize the node const nodeWidth = this.size[0]; const nodeHeight = this.size[1]; this.setSize([nodeWidth*1.5, nodeHeight * 1.1]);