calculating layout does not set all properties #1158
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
Issues and Steps to Reproduce
Code:
Expected Behavior
it should print 10, 10, 110, 110 because right and bottom are 100 away from the other sides
Actual Behavior
it prints 10, 10, 10, 10 meaning the height and width are ignored
Link to Code
See above
I am able to reproduce the same behavior of
YGNodeLayoutGetRight
andYGNodeLayoutGetBottom
with the below test. Width and height are returned correctly, and seems to be what the generated tests are using for assertions.There doesn't seem to be any usages within Meta which calls the APIs (at least the C/C++ version), so I took a look at unit tests to try to understand what the expected value would be (e.g. offsets vs insets). Looking at
YGEdgeTest
, I think the values ofGetRight
andGetBottom
are intended to be insets relative to the right and bottom edge of the parent container. So I think "90" would be the correct value, since we are 90px away from the bottom and right edges of the parent container."10" doesn't seem to make sense under either scheme, and seems like a bug to me.