[x] I have searched existing issues and this is not a duplicate
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.
{/* Represented as red rect beloew*/}
<Animated.View style={[{
width: "100%",
height: "200%",
}, [...]]}>
{/* Represented as orange rect below*/}
<View style={{
width: "100%",
maxHeight: "50%",
}}>
{/* Represented as yellow rect below*/}
{children}
</View>
</Animated.View>
);
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:
Yoga fails to calculate the size for the orange rectangle.
Other rectangles are just there to mimic our React Native's <View /> setup
Source code of the html can be found below (as I've used it to yarn gentest)
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.
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