Comfy-Org / Comfy-Org/ComfyUI_frontend

[Bug]: Node space calculation missing padding

Open
#3,754 0 comments 1 reaction 0 assignees View on GitHub
Potential Bug
Dominant language
TypeScript
Stars
2k
Forks
699
Avg merge
1d 7h
Merged PRs (30d)
490

Description

### Frontend Version

1.19.0

### Expected Behavior

Nodes have the same amount of padding after the last widget

### Actual Behavior

Bottom padding on nodes can be tiny in certain configurations.

Low priority for now. Potentially DOM widget related. Or bool/toggle.

### Steps to Reproduce

This behaviour was seen in one of the nodes made last week; managed to repro whilst doing something unrelated.

1. Add standard CLIP loader
1. `graph.nodes[0].addWidget("toggle", "switz", true, () => {}, {})`
1. Observe lack of padding

![Image](https://github.com/user-attachments/assets/4684c8e6-bb72-4446-84bc-fbfd38a67413)

### Debug Logs

```powershell
N/A
```

### Browser Logs

N/A

### Setting JSON

Default

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

_No response_

### Other Information

_No response_

┆Issue is synchronized with this [Notion page](https://www.notion.so/Issue-3754-Bug-Node-space-calculation-missing-padding-1e96d73d365081c58006d67cb3769167) 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.