YGSize is not equal to CGSize #706
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
In iOS:
And in Yoga:
Because
CGFloat
is double, it will cause a precision lost.66045bd13d/YogaKit/Source/YGLayout.m (L277)
Even if I set the
width
andheight
of the root node explicitly, it may return the different size. And apply it to the view. Then calllayoutSubviews
.It will support
double
instead offloat
? Or can choose by myself.I defined
YGFloat
likeCGFloat
. PR https://github.com/facebook/yoga/pull/1026We are deprecating YogaKit as part of the Yoga 2.0 release. We are still going to release a new revision based on the current state of the repo, but won't be accepting new contributions, since we are going to be removing it from the repo after.