Parent layout height issue with max - height and setUseWebDefaults in Yoga 3.2.0 #1797
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?
Android Platform
I'm encountering an issue with the layout behavior in the Yoga library (version 3.2.0). Here's the scenario:
The parent layout has a height set to auto.
The child layout has a height of 700px and a max - height set to 500px.
When running, the observed result is that the parent layout has a height of 700px, while the child layout has a height of 500px as expected. I noticed that setting setUseWebDefaults seems to solve this issue. However, I'm not sure if setting it only on the parent node will cause any problems.
I also wanted to inquire if setting setUseWebDefaults to true in version 3.2.0 has any performance implications.
Thank you for your time and assistance.