Layout wrong with measured nodes, max-width percentage and absolute position #727
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
Wrapping text with
position: absolute
andmax-width: 90%
computes a parent size smaller than that of its contained content.Issues and Steps to Reproduce
The following layout exhibits the issue:
It results in the following layout being produced by Yoga:
Note that the text node (with
has-custom-measure
) has a greater height than its parent, which seems incorrect to me.Link to Code
This test fails, but I think it ought to succeed: