Skip to content

Pass the real box mode into layout height dependency checks - #106

Merged
trissim merged 2 commits into
mainfrom
perf/native-arrangement-input-mode-20261007
Oct 7, 2026
Merged

trissim merged 2 commits into
mainfrom
perf/native-arrangement-input-mode-20261007

Conversation

@trissim

@trissim trissim commented Oct 7, 2026 •

Copy link
Copy Markdown

The height dependency checks assumed the most conservative box mode, so a fractional width was treated as reading content width even when the box was not sized optimally. HeightDependency.depends and box_depends in _measurement.py now take a greedy argument, and widget.py passes the actual mode through the box and arrangement checks. Native content measurements still choose their own mode. Tests are added for custom widths and for style and child changes.

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

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 9292015 into main Oct 7, 2026
2 of 22 checks passed
@trissim trissim changed the title Use actual box mode in arrangement height dependencies Pass the real box mode into layout height dependency checks Oct 11, 2026
@trissim
trissim deleted the perf/native-arrangement-input-mode-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