Make 'stretch' aligned children fill cross-axis in containers of undefined size in the cross-axis #171
Reference in New Issue
Block a user
No description provided.
Delete Branch "stretch-cross-axis"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary: Fetched and rebased
https://github.com/facebook/css-layout/pull/145 and updated it to do 2
things:
cross-axis if the cross-axis size is undefined. The added test might be
the best explanation of this.
“simpleStackCross” optimization in a relatively complex sample
environment.
Test Plan: Added a test: Container with 3 row directioned children and
no explicit height set. One child is of height 0, one of 0 height with
stretch alignment, and one of 150 height. Expected the 0 height child
remains of height 0, stretch grows to 150, and 150 stays the same.
Looks good, just needs the suggested cleanups. Please communicate about these changes here in #145 as this is based on his work.
The reason all the tests change in LayoutCachingTest.java is because they all have roots which are all default styled (flexDirection: column, alignItems: stretch). The width of the root changes, so the width of the leaves must change.
Looks good but you should also land the generated code for each language in the repo.
Never mind, the commit code does have the generated code. One C# test is failing though.
Landed in #145
Pull request closed