Commit b9c281c5 authored by Tae Hoon's avatar Tae Hoon

set flex amount correctly

parent ad045222
......@@ -41,7 +41,7 @@ const Gallery = {
},
itemStyle (id, row) {
const total = sumBy(row, item => this.getAspectRatio(item.id))
return { flexGrow: this.getAspectRatio(id) / total }
return { flex: this.getAspectRatio(id) / total }
},
getAspectRatio (id) {
const size = this.sizes[id]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment