Skip to content

Stop unused grid measurements from blocking arrangement reuse - #110

Merged
trissim merged 2 commits into
mainfrom
perf/native-grid-measurement-inputs-20261007
Oct 8, 2026
Merged

trissim merged 2 commits into
mainfrom
perf/native-grid-measurement-inputs-20261007

Conversation

@trissim

@trissim trissim commented Oct 8, 2026 •

Copy link
Copy Markdown

GridHeight in _measurement.py treated content and extrema measurements of every grid child as depending on the incoming height, even though the grid only queries them for auto tracks without spans. The check now looks at those queries only: content height and height extrema for children in auto rows with a row span of 1, and content width and width extrema for children in auto columns with a column span of 1. Grids whose tracks fix the cell sizes can then reuse arrangements at other heights. Tests are added to test_height_independent_arrangement.py.

@trissim
trissim marked this pull request as ready for review October 8, 2026 01:02
Copilot AI balanced review requested due to automatic review settings October 8, 2026 01:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@trissim
trissim merged commit b5f0820 into main Oct 8, 2026
0 of 22 checks passed
@trissim trissim changed the title Avoid unused grid measurements blocking arrangement reuse Stop unused grid measurements from blocking arrangement reuse Oct 11, 2026
@trissim
trissim deleted the perf/native-grid-measurement-inputs-20261007 branch October 11, 2026 20:05
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.

2 participants