Skip to content
Snippets Groups Projects
Commit b9c281c5 authored by Tae Hoon's avatar Tae Hoon
Browse files

set flex amount correctly

parent ad045222
No related branches found
No related tags found
No related merge requests found
......@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment