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.
Objective
Fix for the scrolling list in the UI example.
The upgrade to Taffy 3 broke the scrolling list because in Taffy 3
Dimension::Undefined
is removed andVal::Undefined
is mapped toDimension::Auto
. The example was giving the list container a max height ofVal::Undefined
which previously in Taffy internally would have been translated toDimension::Points(0.)
but now becomesDimension::Auto
which means that instead of taking the height of its parent, the list container takes the height of its content, that is the height of the entire list. So the list widget believes that the list fits inside the container and can't be scrolled.Fixes #8056
Solution
Set the height constraint of the list's container to zero so it doesn't automatically take the height of its content and break the list widget.
Changelog
Val::Px(0.)
, so it doesn't take the height of its content and break the list widget.