11import { Component , View , onAllChangesDone , Parent } from 'angular2/angular2' ;
22import { onDestroy , onChange } from 'angular2/src/core/annotations/annotations' ;
33import { ListWrapper } from 'angular2/src/facade/collection' ;
4- import { CONST } from 'angular2/src/facade/lang' ;
5- import { isPresent , isString , NumberWrapper } from 'angular2/src/facade/lang' ;
4+ import { isPresent , isString , NumberWrapper , stringify } from 'angular2/src/facade/lang' ;
65import { PropertySetter } from 'angular2/src/core/annotations/di' ;
76
87// TODO(jelbourn): Set appropriate aria attributes for grid list elements.
@@ -20,7 +19,7 @@ import {PropertySetter} from 'angular2/src/core/annotations/di';
2019} )
2120export class MdGridList {
2221 /** List of tiles that are being rendered. */
23- tiles : Array < MdGridTile > ;
22+ tiles : List < MdGridTile > ;
2423
2524 /** Number of columns being rendered. Can be either string or number */
2625 cols ;
@@ -37,8 +36,8 @@ export class MdGridList {
3736 /** The amount of space between tiles. This will be something like '5px' or '2em'. */
3837 gutterSize : string ;
3938
40- /** Array used to track the amount of space available. */
41- spaceTracker : Array < number > ;
39+ /** List used to track the amount of space available. */
40+ spaceTracker : List < number > ;
4241
4342 constructor ( ) {
4443 this . tiles = [ ] ;
@@ -144,8 +143,8 @@ export class MdGridList {
144143 switch ( this . rowHeightMode ) {
145144 case 'fixed' :
146145 // In fixed mode, simply use the given row height.
147- tileStyle . top = getTilePosition ( this . fixedRowHeight , rowIndex ) ;
148- tileStyle . height = getTileSize ( this . fixedRowHeight , tile . rowspan ) ;
146+ tileStyle . top = getTilePosition ( stringify ( this . fixedRowHeight ) , rowIndex ) ;
147+ tileStyle . height = getTileSize ( stringify ( this . fixedRowHeight ) , tile . rowspan ) ;
149148 break ;
150149
151150 case 'ratio' :
@@ -160,8 +159,6 @@ export class MdGridList {
160159 break ;
161160
162161 case 'fit' :
163- var percentHeightPerTile ;
164-
165162 break ;
166163 }
167164
0 commit comments