Skip to content

Commit 0a2d21b

Browse files
committed
Default cellHeight value to number
1 parent e967763 commit 0a2d21b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/grid-list/grid-list.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const GridList = React.createClass({
3232
return {
3333
cols: 2,
3434
padding: 4,
35-
cellHeight: '180px',
35+
cellHeight: 180,
3636
};
3737
},
3838

@@ -84,7 +84,7 @@ const GridList = React.createClass({
8484
const childRows = currentChild.props.rows || 1;
8585
const itemStyle = this.mergeStyles(styles.item, {
8686
width: (100 / cols * childCols) + '%',
87-
height: parseInt(cellHeight) * childRows + padding,
87+
height: cellHeight * childRows + padding,
8888
});
8989

9090
return <div style={this.prepareStyles(itemStyle)}>{currentChild}</div>;

0 commit comments

Comments
 (0)