We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e967763 commit 0a2d21bCopy full SHA for 0a2d21b
src/grid-list/grid-list.jsx
@@ -32,7 +32,7 @@ const GridList = React.createClass({
32
return {
33
cols: 2,
34
padding: 4,
35
- cellHeight: '180px',
+ cellHeight: 180,
36
};
37
},
38
@@ -84,7 +84,7 @@ const GridList = React.createClass({
84
const childRows = currentChild.props.rows || 1;
85
const itemStyle = this.mergeStyles(styles.item, {
86
width: (100 / cols * childCols) + '%',
87
- height: parseInt(cellHeight) * childRows + padding,
+ height: cellHeight * childRows + padding,
88
});
89
90
return <div style={this.prepareStyles(itemStyle)}>{currentChild}</div>;
0 commit comments