Skip to content

Commit e967763

Browse files
committed
fixed style issues with Safari
1 parent 35d7e93 commit e967763

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/grid-list/grid-list.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const GridList = React.createClass({
5353
{
5454
return {
5555
root: {
56-
display: 'flex',
56+
display: '-webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex',
5757
flexWrap: 'wrap',
5858
margin: `-${this.props.padding/2}px`,
5959
},
@@ -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: cellHeight * childRows + padding,
87+
height: parseInt(cellHeight) * childRows + padding,
8888
});
8989

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

src/grid-list/grid-tile.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const GridTile = React.createClass({
8383
[this.props.titlePosition]: 0,
8484
height: this.props.subtitle ? 68 : 48,
8585
background: this.props.titleBackground,
86-
display: 'flex',
86+
display: '-webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex',
8787
alignItems: 'center',
8888
},
8989
titleWrap: {

0 commit comments

Comments
 (0)