Child nodes shrink when parent node move across an axis #683
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
Child nodes get smaller and smaller on every layout calculation when the parent node is moving across an axis or positioned along the axis.
The 2 test cases below reproduce the issue, notice that when the tests fail the leaf node is smaller by 10.
Expected Behavior
The width and height of the child node do not change when moving the top parent node.
Actual Behavior
Child nodes keep shrinking until they don't have any width and/or height.
Created pull request here : https://github.com/facebook/yoga/pull/688
This is still causing major headaches for me, and the fix looks really simple. Is there any update on when this can be resolved?
it's causing problems in react native too.
@davidaurelio This seems to be an issue with how Yoga performs rounding. cc @shergin who implemented most of the current rounding functionality.
I will look into it