Skip to content

Commit

Permalink
Default cellHeight value to number
Browse files Browse the repository at this point in the history
  • Loading branch information
vinzscam committed Oct 20, 2015
1 parent e967763 commit 0a2d21b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/grid-list/grid-list.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const GridList = React.createClass({
return {
cols: 2,
padding: 4,
cellHeight: '180px',
cellHeight: 180,
};
},

Expand Down Expand Up @@ -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 <div style={this.prepareStyles(itemStyle)}>{currentChild}</div>;
Expand Down

0 comments on commit 0a2d21b

Please sign in to comment.