Skip to content

Conversation

@woehrl01
Copy link
Contributor

@woehrl01 woehrl01 commented Feb 21, 2017

If we don't measure exactly, percentage values aren't exactly either. Fix for #414.

@facebook-github-bot
Copy link
Contributor

@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 ==
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, will do

@emilsjolander
Copy link
Contributor

@woehrl01 I think you accidentally added a bunch of flex-basis tests into this PR.

@woehrl01
Copy link
Contributor Author

@emilsjolander ups, sorry! here you are! 😄

@facebook-github-bot
Copy link
Contributor

@emilsjolander has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

facebook-github-bot pushed a commit that referenced this pull request Feb 28, 2017
Summary:
If we don't measure exactly, percentage values aren't exactly either. Fix for #414.
Closes #416
Closes #414

Reviewed By: astreet

Differential Revision: D4604729

Pulled By: emilsjolander

fbshipit-source-id: 66880230073209cbe89668b838c2a82e7f9b34df
dudeinthemirror pushed a commit to dudeinthemirror/react-native that referenced this pull request Mar 1, 2017
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
dudeinthemirror pushed a commit to dudeinthemirror/react-native that referenced this pull request Mar 1, 2017
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
vincentriemer pushed a commit to vincentriemer/yoga-dom that referenced this pull request May 9, 2018
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants