From 0a2d21b135be90c828803d27d03ee7ffaf27e6f1 Mon Sep 17 00:00:00 2001 From: Vincenzo Scamporlino Date: Tue, 20 Oct 2015 23:13:11 +0200 Subject: [PATCH] Default cellHeight value to number --- src/grid-list/grid-list.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grid-list/grid-list.jsx b/src/grid-list/grid-list.jsx index ce938572284e44..dbbc28bd5c0130 100644 --- a/src/grid-list/grid-list.jsx +++ b/src/grid-list/grid-list.jsx @@ -32,7 +32,7 @@ const GridList = React.createClass({ return { cols: 2, padding: 4, - cellHeight: '180px', + cellHeight: 180, }; }, @@ -84,7 +84,7 @@ const GridList = React.createClass({ const childRows = currentChild.props.rows || 1; const itemStyle = this.mergeStyles(styles.item, { width: (100 / cols * childCols) + '%', - height: parseInt(cellHeight) * childRows + padding, + height: cellHeight * childRows + padding, }); return
{currentChild}
;