Skip to content

Add auto sizing pass for grid tracks - #43

Merged
geom3trik merged 1 commit into
mainfrom
auto-grid
Jul 17, 2026
Merged

geom3trik merged 1 commit into
mainfrom
auto-grid

Conversation

@geom3trik

Copy link
Copy Markdown
Collaborator

Implement explicit measurement passes for Grid auto tracks in layout.rs: auto columns now derive width from single-span children, and auto rows derive height from single-span children using computed column widths. This enables content-driven auto sizing while preserving existing stretch/pixel behavior. Add comprehensive tests/grid.rs coverage for auto columns, auto rows, mixed track types, gaps, max-size aggregation, combined auto grids, and content-size-dependent measurement.

Update grid.rs

Implement explicit measurement passes for `Grid` auto tracks in `layout.rs`: auto columns now derive width from single-span children, and auto rows derive height from single-span children using computed column widths. This enables content-driven auto sizing while preserving existing stretch/pixel behavior. Add comprehensive `tests/grid.rs` coverage for auto columns, auto rows, mixed track types, gaps, max-size aggregation, combined auto grids, and content-size-dependent measurement.

Update grid.rs
@geom3trik
geom3trik merged commit 48483cb into main Jul 17, 2026
4 checks passed
@geom3trik
geom3trik deleted the auto-grid branch July 17, 2026 15:30
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.

1 participant