set flex-shrink and flex-basis explicitly

This commit is contained in:
taehoon 2019-10-22 14:47:21 -04:00
parent b9c281c553
commit d76b83efc8
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ const Gallery = {
},
itemStyle (id, row) {
const total = sumBy(row, item => this.getAspectRatio(item.id))
return { flex: this.getAspectRatio(id) / total }
return { flex: `${this.getAspectRatio(id) / total} 1 0%` }
},
getAspectRatio (id) {
const size = this.sizes[id]