| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 @license | 2 @license |
| 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
| 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE | 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE |
| 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS | 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS |
| 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS | 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS |
| 7 Code distributed by Google as part of the polymer project is also | 7 Code distributed by Google as part of the polymer project is also |
| 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS |
| 9 --> | 9 --> |
| 10 <dom-module id="x-list"> | 10 <dom-module id="x-list"> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 .item:nth-child(even) { | 28 .item:nth-child(even) { |
| 29 background-color: red; | 29 background-color: red; |
| 30 } | 30 } |
| 31 </style> | 31 </style> |
| 32 | 32 |
| 33 <template> | 33 <template> |
| 34 <iron-list style$="[[computedListHeight(listHeight)]]" items="[[data]]" | 34 <iron-list style$="[[computedListHeight(listHeight)]]" items="[[data]]" |
| 35 as="item" id="list"> | 35 as="item" id="list"> |
| 36 <template> | 36 <template> |
| 37 <div class="item"> | 37 <div class="item"> |
| 38 <div style$="[[computedItemHeight()]]">[[item.index]]</div> | 38 <div style$="[[computedItemHeight(item)]]">[[item.index]]</div> |
| 39 </div> | 39 </div> |
| 40 </template> | 40 </template> |
| 41 </iron-list> | 41 </iron-list> |
| 42 </template> | 42 </template> |
| 43 | 43 |
| 44 </dom-module> | 44 </dom-module> |
| OLD | NEW |