Comfy-Org / Comfy-Org/ComfyUI_frontend

Aligning nodes using the "align selected to" and "distribute nodes" operations should function properly on collapsed nodes

Open
#12,022 1 comment 1 reaction 0 assignees View on GitHub
area:nodes area:ui enhancement
Dominant language
TypeScript
Stars
2k
Forks
699
Avg merge
1d 7h
Merged PRs (30d)
490

Description

### What problem are you experiencing?

Using "align selected to" and "distribute nodes" operations on collapsed (minimized) nodes uses the invisible edges of the uncollapsed nodes as the edges, causing the collapsed nodes to not align or distribute properly.

As someone who likes to use these operations often to keep workflows clean and organized, it would be great if they would work properly on collapsed nodes, where the operation treats the edges of the collapsed node as the edges instead of the invisible edges of the uncollapsed node.

### When does this problem occur?

Selecting multiple collapsed nodes, right clicking, clicking "align selected to" or "distribute nodes"

### How often do you encounter this problem?

Several times per week

### How much does this problem affect your workflow?

Causes moderate inconvenience

### Current workarounds

Manually trying to align/distribute the collapsed nodes, costs time and is not perfect

### Ideas for solutions (Optional)

It would be great if the align/distribute functions would work properly on collapsed nodes, where the operation treats the edges of the collapsed node as the edges instead of the invisible edges of the uncollapsed node.

### Additional context

_No response_

┆Issue is synchronized with this [Notion page](https://www.notion.so/Issue-12022-Aligning-nodes-using-the-align-selected-to-and-distribute-nodes-operations-should-3586d73d365081bba3fdde18c0720865) by [Unito](https://www.unito.io)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue by selecting multiple collapsed nodes and using “align selected to” or “distribute nodes.” Trace the frontend entry points for these operations and compare the bounds used for collapsed versus uncollapsed nodes. Done means both operations use the visible edges of collapsed nodes and align or distribute them correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.