Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parent layout height issue with max - height and setUseWebDefaults in Yoga 3.2.0 #1797

Open
chanchangxing opened this issue Mar 11, 2025 · 2 comments

Comments

@chanchangxing
Copy link

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.

@chanchangxing
Copy link
Author

Image

@chanchangxing
Copy link
Author

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant