The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
bugfix: Fixing the calculation issue when an image widget is added to the size calculation of the text widget.
Dr.Lt.Data422163c2ba65
diff --git a/web/scripts/app.js b/web/scripts/app.jsindex 9df94c9eb..27c67fb49 100644--- a/web/scripts/app.js+++ b/web/scripts/app.js@@ -365,6 +365,10 @@ export class ComfyApp {}node.prototype.setSizeForImage = function () {+ if (this.inputHeight) {+ this.setSize(this.size);+ return;+ }const minHeight = getImageTop(this) + 220;if (this.size[1] < minHeight) {this.setSize([this.size[0], minHeight]);diff --git a/web/scripts/widgets.js b/web/scripts/widgets.jsindex d6faaddbf..dfa26aef4 100644--- a/web/scripts/widgets.js+++ b/web/scripts/widgets.js@@ -115,12 +115,12 @@ function addMultilineWidget(node, name, opts, app) {// See how large each text input can befreeSpace -= widgetHeight;- freeSpace /= multi.length;+ freeSpace /= multi.length + (!!node.imgs?.length);if (freeSpace < MIN_SIZE) {// There isnt enough space for all the widgets, increase the size of the nodefreeSpace = MIN_SIZE;- node.size[1] = y + widgetHeight + freeSpace * multi.length;+ node.size[1] = y + widgetHeight + freeSpace * (multi.length + (!!node.imgs?.length));node.graph.setDirtyCanvas(true);}