Skip to content

Size draw.io subnet containers to their nodes - #48

Merged
jacobyoby merged 1 commit into
mainfrom
fix/issue-19-dynamic-layout
Sep 9, 2026
Merged

jacobyoby merged 1 commit into
mainfrom
fix/issue-19-dynamic-layout

Conversation

@jacobyoby

Copy link
Copy Markdown
Owner

Subnet containers were fixed at 800×550 while nodes continued in four-column rows. The seventeenth node already extended outside its parent, and fixed 600-pixel row spacing let larger containers overlap the row below.

This change assigns nodes to subnets before rendering, sizes each container from its child count, and starts each two-column row below the tallest container above it. Unmatched nodes begin below the actual final container boundary.

Parameterized XML tests cover 0, 1, 16, 17, and 50 nodes per subnet. A multi-subnet fixture checks pairwise non-overlap and verifies that an unmatched node is placed below every container.

Validation: git diff --check passed. PowerShell is unavailable on the local host; GitHub Actions will run Pester on Linux, macOS, and Windows plus PSScriptAnalyzer. Interactive draw.io inspection remains required before merge.

Closes #19

@jacobyoby
jacobyoby merged commit a63b2c5 into main Sep 9, 2026
4 checks passed
@jacobyoby
jacobyoby deleted the fix/issue-19-dynamic-layout branch September 9, 2026 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

P1: Size diagram containers to fit their nodes and verify rendered output

1 participant