The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Fix node growing with DOM widgets when adding image even if enough space
pythongosssss28220fa8392b
diff --git a/web/scripts/app.js b/web/scripts/app.jsindex 861db16bd..8598d4478 100644--- a/web/scripts/app.js+++ b/web/scripts/app.js@@ -411,7 +411,7 @@ export class ComfyApp {node.prototype.setSizeForImage = function (force) {if(!force && this.animatedImages) return;- if (this.inputHeight) {+ if (this.inputHeight || this.freeWidgetSpace > 210) {this.setSize(this.size);return;}diff --git a/web/scripts/domWidget.js b/web/scripts/domWidget.jsindex 37d26f3c5..e919428a0 100644--- a/web/scripts/domWidget.js+++ b/web/scripts/domWidget.js@@ -120,6 +120,8 @@ function computeSize(size) {freeSpace -= 220;}+ this.freeWidgetSpace = freeSpace;+if (freeSpace < 0) {// Not enough space for all widgets so we need to growsize[1] -= freeSpace;