Repository navigation
A virtual list with only a max height sizes to its rows (#434) - #454
Merged
Merged
Conversation
…he max (#434) A scroll container is a leaf of its layout tree, so with no height of its own it collapsed to nothing. The virtual list knows the rows' total, so it now sizes its container to the content (inside the content's padding) when the classes gave no height; a max height still caps it. The command list's hand-computed height is gone: it gives the list a max height. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AJYxo4YJZUXcPJ1bHdAHKy
…ight Its parents measure it by the height it was given, not by the max it is clamped to later: a dialog holding a long list measured as tall as the list. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AJYxo4YJZUXcPJ1bHdAHKy
Owner
Author
|
Approved by the user on its tests (2026-11-20); fit_height never exceeds a definite max. GitHub's required checks pass on the branch merged with current main. Merging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #434.
A virtual list given only a max height now sizes to its rows, up to the max. The command list's hand-sizing (
list_height) is removed in favor ofmax_h_px.Test:
a_list_with_only_a_max_height_is_as_tall_as_its_rows_up_to_the_max(3, 10 and 1000 rows); the palette's existing height tests pass unchanged.🤖 Generated with Claude Code
https://claude.ai/code/session_01AJYxo4YJZUXcPJ1bHdAHKy