Skip to content

Commit

Permalink
Update height-and-width.md (#616)
Browse files Browse the repository at this point in the history
Correcting grammar for clarity.
  • Loading branch information
jetsetting-stressball authored and hramos committed Nov 2, 2018
1 parent 8c30b5a commit c324b8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/height-and-width.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Setting dimensions this way is common for components that should always render a

## Flex Dimensions

Use `flex` in a component's style to have the component expand and shrink dynamically based on available space. Normally you will use `flex: 1`, which tells a component to fill all available space, shared evenly amongst each other component with the same parent. The larger the `flex` given, the higher the ratio of space a component will take compared to its siblings.
Use `flex` in a component's style to have the component expand and shrink dynamically based on available space. Normally you will use `flex: 1`, which tells a component to fill all available space, shared evenly amongst other components with the same parent. The larger the `flex` given, the higher the ratio of space a component will take compared to its siblings.

> A component can only expand to fill available space if its parent has dimensions greater than 0. If a parent does not have either a fixed `width` and `height` or `flex`, the parent will have dimensions of 0 and the `flex` children will not be visible.
Expand Down

0 comments on commit c324b8a

Please sign in to comment.