mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-25 15:55:18 +00:00
Fix node growing with DOM widgets when adding image even if enough space
This commit is contained in:
parent
2995a24725
commit
28220fa839
@ -411,7 +411,7 @@ export class ComfyApp {
|
|||||||
node.prototype.setSizeForImage = function (force) {
|
node.prototype.setSizeForImage = function (force) {
|
||||||
if(!force && this.animatedImages) return;
|
if(!force && this.animatedImages) return;
|
||||||
|
|
||||||
if (this.inputHeight) {
|
if (this.inputHeight || this.freeWidgetSpace > 210) {
|
||||||
this.setSize(this.size);
|
this.setSize(this.size);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -120,6 +120,8 @@ function computeSize(size) {
|
|||||||
freeSpace -= 220;
|
freeSpace -= 220;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.freeWidgetSpace = freeSpace;
|
||||||
|
|
||||||
if (freeSpace < 0) {
|
if (freeSpace < 0) {
|
||||||
// Not enough space for all widgets so we need to grow
|
// Not enough space for all widgets so we need to grow
|
||||||
size[1] -= freeSpace;
|
size[1] -= freeSpace;
|
||||||
|
Loading…
Reference in New Issue
Block a user