Skip to content

When the link inside the subgraph is misaligned with the input. #5705

@comfyui-wiki

Description

@comfyui-wiki

Problem

Links inside subgraphs are visually misaligned between Vue nodes and Subgraph IO nodes due to coordinate system inconsistency.

Link misalignment between Vue node and subgraph IO

Root Cause

Vue nodes apply a visual transform offset of -LiteGraph.NODE_TITLE_HEIGHT in LGraphNode.vue:34, but Subgraph IO nodes use raw canvas coordinates in SubgraphInput.ts:225-226.

Reproduction

  1. Enable Vue nodes (Comfy.VueNodes.Enabled = true)
  2. Create subgraph containing Vue nodes
  3. Enter subgraph view
  4. Observe misaligned connections between Vue nodes and subgraph IO nodes

Solution

Update slot position calculation in useSlotElementTracking.ts to account for Vue node transform offset when calculating connection points.

Related

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions