1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-04 07:52:46 +08:00

Fix node growing with DOM widgets when adding image even if enough space

This commit is contained in:
pythongosssss
2023-12-02 12:02:03 +00:00
parent 2995a24725
commit 28220fa839
2 changed files with 3 additions and 1 deletions

View File

@@ -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 grow
size[1] -= freeSpace;