Skip to content
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

Update layout2-layoutspec-types.md #1330

Merged
merged 1 commit into from
Feb 15, 2019

Conversation

knowsudhanshu
Copy link
Contributor

justifyContent definition updated.

`justifyContent` definition updated.
@CLAassistant
Copy link

CLAassistant commented Jan 29, 2019

CLA assistant check
All committers have signed the CLA.

@@ -84,7 +84,7 @@ they will be resolved again, causing justifyContent and alignItems to be updated
- `verticalAlignment`. Specifies how children are aligned vertically. Depends on the stack direction, setting the alignment causes either
justifyContent or alignItems to be updated. The alignment will remain valid after future direction changes.
Thus, it is preferred to those properties.
- `justifyContent`. The amount of space between each child.
- `justifyContent`. It defines the alignment along the main axis.
Copy link
Member

Choose a reason for hiding this comment

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

While both descriptions are valid, I agree that the new one is clearer because there are cases ("start", "end" and "center") in which the space between each child is zero and yet the alignments are different. Plus, the new description is similar to the one in CSS Flexbox Spec.

Nit: How about "Alignment of children along main axis"? It's consistent with the other descriptions in this page.

@nguyenhuy
Copy link
Member

Cool, thank you, @knowsudhanshu.

@nguyenhuy nguyenhuy merged commit d4a1242 into TextureGroup:master Feb 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants