Skip to content

Commit

Permalink
fixed style issues with Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
vinzscam committed Oct 20, 2015
1 parent 35d7e93 commit e967763
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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 @@ -53,7 +53,7 @@ const GridList = React.createClass({
{
return {
root: {
display: 'flex',
display: '-webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex',
flexWrap: 'wrap',
margin: `-${this.props.padding/2}px`,
},
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: cellHeight * childRows + padding,
height: parseInt(cellHeight) * childRows + padding,
});

return <div style={this.prepareStyles(itemStyle)}>{currentChild}</div>;
Expand Down
2 changes: 1 addition & 1 deletion src/grid-list/grid-tile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const GridTile = React.createClass({
[this.props.titlePosition]: 0,
height: this.props.subtitle ? 68 : 48,
background: this.props.titleBackground,
display: 'flex',
display: '-webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex',
alignItems: 'center',
},
titleWrap: {
Expand Down

0 comments on commit e967763

Please sign in to comment.