[Yoga 3] Wrong outcome of max-height percentage value #1655
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
Report
Issues and Steps to Reproduce
Description
In React Native app we set a wrapper height to 200% and then another wrapper gets max-height set to 50% (resulting in that
{children}
should have max "100%" size). We do that for pan gesture overflow & animations.With recent update from "react-native": "0.73.4" -> "react-native": "0.74.1" we have noticed that
{children}
is 2 times smaller than it used to be.Here's html screenshot illustrating the behaviour on web:
<View />
setupyarn gentest
)Expected Behavior
Test to pass & to work the same as in html
Actual Behavior
Test fails

yarn gentest sample
Here's the html sourcecode
Thanks for reporting this! I’m going to carve out some time to debug this, since it’s a new regression. I suspect this is related to changes made to fix maxHeight behavior for multiline containers.