Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
Note vertical layout needs height
Browse files Browse the repository at this point in the history
  • Loading branch information
ebidel committed Sep 26, 2014
1 parent 9e8d605 commit 4e79482
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/polymer/layout-attrs.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Children of an element using the `layout` attribute can use `flex` attributes to

The same is true for children of `vertical` elements:

<div vertical layout>
<div vertical layout style="height:250px">
<div>Alpha</div>
<div flex>Beta (flex)</div>
<div>Gamma</div>
Expand All @@ -89,6 +89,8 @@ The same is true for children of `vertical` elements:
<div>Gamma</div>
</div>

**Note**: for vertical layouts, the container needs to have a height for the children to flex correctly.

Children elements can be told to take up more space by including a "flex ratio" with the `flex` atribute. A flex ratio is specified with a number string: _one_, _two_, _three_, currently up to _twelve_.

For example, to make "Gamma" 2x larger than "Beta" and "Alpha" 3x larger, use `flex two` and `flex three`, respectively:
Expand Down

0 comments on commit 4e79482

Please sign in to comment.