Fix negative value rounding issue for nodes across an axis #688
Reference in New Issue
Block a user
No description provided.
Delete Branch "jmaurice-unity/rounding-nodes-shrink"
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?
This fix issue #683 the rounding calculation is incorrect if a node is crossing an axis and it will shrink it's width/height on layout calculation.
The following test reproduce the issue :
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.
If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!
can you add the new test to the PR please?
There's already a test above that reproduce the issue.
What is the status of this? This bug is pretty heavily impacting my project and forcing me to run a branch with this fix. It would be nice to get this merged in.
@davidaurelio has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@davidaurelio has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@davidaurelio has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@davidaurelio has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@davidaurelio has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@rozele has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@rozele has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@rozele merged this pull request in facebook/yoga@4266409934.
This pull request has been reverted by
996267dbcb
.As a heads up, it looks like this change ended up making subtle shifts to existing layouts in many of our screenshot tests, so this change was reverted to investigate.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.