Skip to content

[ladder-editor] P0: Ladder diagram not visible — no auto-fit after render #153

@Mikecranesync

Description

@Mikecranesync

Playwright audit confirmed ladder renders 44 nodes/36 edges for the conveyor ST program, but the viewport does not auto-fit after rendering. Content appears tiny and off-center in the upper portion of the canvas — effectively invisible without manual zoom/pan.

Repro: Paste any ST program. Ladder renders but is not centered or fit to the canvas.

Fix: Call fitView() on the React Flow instance after the transformer produces new nodes. Add fitView prop or trigger it via useReactFlow().fitView() after node state updates.

Evidence: e2e/screenshots/10-full-state.png — nodes visible in minimap but not in main viewport at usable scale.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ladder-editorladder-logic-editor fork bugs and improvements

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions