Comfy-Org / Comfy-Org/ComfyUI_frontend

[Bug]: Hidden "advanced" widgets affect node minimum size

Open
#4,728 3 comments 0 reactions 0 assignees View on GitHub
area:widgets
Dominant language
TypeScript
Stars
2k
Forks
699
Avg merge
1d 7h
Merged PRs (30d)
490

Description

### Frontend Version

1.12.1

### Expected Behavior

When advanced widgets are hidden, ComfyUI shouldn't prevent me from resizing the node to get rid of the empty space left behind.

### Actual Behavior

The invisible widgets affect the minimum size of the node.

![Image](https://github.com/user-attachments/assets/6dc63fd7-6190-4816-81d4-fe566483f380)

### Steps to Reproduce

This behaviour is much easier to see with a node that has more than one advanced input, but even the normal Load CLIP node has this behaviour. Just add one to a workflow and compare its bottom padding to a LoRALoader node for example; there's more empty space.

You can also try resizing the CLIPLoader node to remove the space, but it immediately snaps back.

### Debug Logs

```powershell
Not relevant
```

### Browser Logs

No useful output, just a version and two messages from creating a new workflow. No new output appears when resizing or creating new nodes.

### Setting JSON

Defaults; I removed the entire file for testing.

### What browsers do you use to access the UI ?

Mozilla Firefox, Google Chrome

### Other Information

_No response_

┆Issue is synchronized with this [Notion page](https://www.notion.so/Issue-4728-Bug-Hidden-advanced-widgets-affect-node-minimum-size-2476d73d365081e7b9f3c1af42c308c5) by [Unito](https://www.unito.io)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.