Skip to content

Commit

Permalink
fix(grid-list): Default width attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
MyNameIsCosmo committed Feb 26, 2018
1 parent 177ca62 commit a71ab3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/grid-list/mdc-grid-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ export default {
return classes
},
styles () {
var defaultWidth = 200
return {
'--mdc-grid-list-tile-width': `${this.width}px`
'--mdc-grid-list-tile-width': `${this.width || defaultWidth}px`
}
}
},
Expand Down

0 comments on commit a71ab3a

Please sign in to comment.