Skip to content

Declare container selection separately from native box measurement - #108

Merged
trissim merged 1 commit into
mainfrom
fix/native-container-selection-declaration-20261007
Oct 7, 2026
Merged

trissim merged 1 commit into
mainfrom
fix/native-container-selection-declaration-20261007

Conversation

@trissim

@trissim trissim commented Oct 7, 2026 •

Copy link
Copy Markdown

The check for whether a widget is a container was folded into the native box measurement, so a widget overriding is_container could not be told apart from the native resolver. This change adds a NativeContainerSelection dependency in _measurement.py and attaches it to ScrollView.is_container; widget.py compiles it from the getter's declaration, and undeclared overrides fall back to the conservative height dependency. Native content width and height checks and the relative-children check now consult it. Tests are added to test_height_independent_measurement.py.

@trissim
trissim marked this pull request as ready for review October 7, 2026 23:29
Copilot AI balanced review requested due to automatic review settings October 7, 2026 23:29
@trissim
trissim merged commit b5d1514 into main Oct 7, 2026
1 of 22 checks passed

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 changed the title Separate declared container selection from native box resolution Declare container selection separately from native box measurement Oct 11, 2026
@trissim
trissim deleted the fix/native-container-selection-declaration-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