From b9c281c55374bc440d0efbf33d1dd74d8ea6dfd0 Mon Sep 17 00:00:00 2001
From: taehoon
Date: Tue, 22 Oct 2019 07:10:52 -0400
Subject: [PATCH] set flex amount correctly
---
src/components/gallery/gallery.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/gallery/gallery.js b/src/components/gallery/gallery.js
index 4037da98..9281d41b 100644
--- a/src/components/gallery/gallery.js
+++ b/src/components/gallery/gallery.js
@@ -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]