maxHeight incorrectly includes margins in the calculation #466
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?
When a node has both a max height and a vertical margin, it appears that Yoga incorrectly considers the margins to take up part of the max height.
Repro Steps
Here's some HTML representing a case that repros the bug:
Here's the equivalent C code:
Expected Output
Child's height is 100:
This JSFiddle illustrates the expected behavior: https://jsfiddle.net/4mr6tbqq/
Actual Output
Child's height is 80:
I got this, fix is coming in a few minutes. Thank you for the great description. 👍
@woehrl01 Thanks for the quick turnaround!