Skip to content

Fix main size calculation from the aspect ratio#715

Closed
synk wants to merge 1 commit into
react:masterfrom
synk:fix-aspect-ratio-margin
Closed

Fix main size calculation from the aspect ratio#715
synk wants to merge 1 commit into
react:masterfrom
synk:fix-aspect-ratio-margin

Conversation

@synk

@synk synk commented Feb 14, 2018

Copy link
Copy Markdown

When the following conditions are met, the main size become smaller by the margins in the main axis.

  • The aspect ratio is defined
  • The main size is not defined
  • The cross size is defined
  • The main margin is defined

This is because the main margin size is not included when calculating the main size from the aspect ratio.

@facebook-github-bot facebook-github-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

@priteshrnandgaonkar

Copy link
Copy Markdown
Contributor

Awesome work, thanks for the PR. I have imported it in our system.

facebook-github-bot pushed a commit to react/react-native that referenced this pull request Feb 15, 2018
Summary:
When the following conditions are met, the main size become smaller by the margins in the main axis.
* The aspect ratio is defined
* The main size is not defined
* The cross size is defined
* The main margin is defined

This is because the main margin size is not included when calculating the main size from the aspect ratio.
Closes react/yoga#715

Reviewed By: emilsjolander

Differential Revision: D6998988

Pulled By: priteshrnandgaonkar

fbshipit-source-id: f6f69c47ece17bd7c5e41517b96032bf0c149356
facebook-github-bot pushed a commit that referenced this pull request Feb 15, 2018
Summary:
When the following conditions are met, the main size become smaller by the margins in the main axis.
* The aspect ratio is defined
* The main size is not defined
* The cross size is defined
* The main margin is defined

This is because the main margin size is not included when calculating the main size from the aspect ratio.
Closes #715

Reviewed By: emilsjolander

Differential Revision: D6998988

Pulled By: priteshrnandgaonkar

fbshipit-source-id: f6f69c47ece17bd7c5e41517b96032bf0c149356
vincentriemer pushed a commit to vincentriemer/yoga-dom that referenced this pull request May 9, 2018
Summary:
When the following conditions are met, the main size become smaller by the margins in the main axis.
* The aspect ratio is defined
* The main size is not defined
* The cross size is defined
* The main margin is defined

This is because the main margin size is not included when calculating the main size from the aspect ratio.
Closes react/yoga#715

Reviewed By: emilsjolander

Differential Revision: D6998988

Pulled By: priteshrnandgaonkar

fbshipit-source-id: f6f69c47ece17bd7c5e41517b96032bf0c149356
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.

3 participants