Skip to content

Reuse fixed-size widget box measurements when the parent width changes - #105

Merged
trissim merged 3 commits into
mainfrom
perf/native-width-arrangement-20261007
Oct 7, 2026
Merged

trissim merged 3 commits into
mainfrom
perf/native-width-arrangement-20261007

Conversation

@trissim

@trissim trissim commented Oct 7, 2026 •

Copy link
Copy Markdown

Fixed-size widgets were remeasured whenever their parent's width changed, even when their size does not depend on it. _local_box_inputs in _measurement.py now also reports whether a widget's width and extrema are independent of available width, and widget.py uses that to leave the width out of the box cache key. Percentage, fill and fraction sizes, and non-cell max widths, still depend on the parent width. Tests are added to test_height_independent_measurement.py.

@trissim
trissim marked this pull request as ready for review October 7, 2026 22:12
Copilot AI balanced review requested due to automatic review settings October 7, 2026 22:12

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 7cb27d1 into main Oct 7, 2026
0 of 22 checks passed
@trissim trissim changed the title Reuse fixed native box measurements across parent width changes Reuse fixed-size widget box measurements when the parent width changes Oct 11, 2026
@trissim
trissim deleted the perf/native-width-arrangement-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