-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Fix percentage in flexing parent #416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@emilsjolander has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
yoga/Yoga.c
Outdated
| childCrossMeasureMode = | ||
| YGFloatIsUndefined(childCrossSize) ? YGMeasureModeUndefined : YGMeasureModeExactly; | ||
| YGFloatIsUndefined(childCrossSize) || | ||
| (currentRelativeChild->resolvedDimensions[dim[crossAxis]]->unit == |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we extract this condition into a named bool? Or add comments on the two conditions we're trying to check here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, will do
|
@woehrl01 I think you accidentally added a bunch of |
fc09590 to
86fd730
Compare
|
@emilsjolander ups, sorry! here you are! 😄 |
|
@emilsjolander has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: If we don't measure exactly, percentage values aren't exactly either. Fix for facebook#414. Closes facebook/yoga#416 Closes facebook/yoga#414 Reviewed By: astreet Differential Revision: D4604729 Pulled By: emilsjolander fbshipit-source-id: 66880230073209cbe89668b838c2a82e7f9b34df
Summary: If we don't measure exactly, percentage values aren't exactly either. Fix for facebook#414. Closes facebook/yoga#416 Closes facebook/yoga#414 Reviewed By: astreet Differential Revision: D4604729 Pulled By: emilsjolander fbshipit-source-id: 66880230073209cbe89668b838c2a82e7f9b34df
Summary: If we don't measure exactly, percentage values aren't exactly either. Fix for #414. Closes facebook/yoga#416 Closes facebook/yoga#414 Reviewed By: astreet Differential Revision: D4604729 Pulled By: emilsjolander fbshipit-source-id: 66880230073209cbe89668b838c2a82e7f9b34df
If we don't measure exactly, percentage values aren't exactly either. Fix for #414.