From d76b83efc801cfc4bfd7cb0afa7d7289a16ec667 Mon Sep 17 00:00:00 2001
From: taehoon
Date: Tue, 22 Oct 2019 14:47:21 -0400
Subject: [PATCH] set flex-shrink and flex-basis explicitly
---
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 9281d41b..bd0de608 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 { flex: this.getAspectRatio(id) / total }
+ return { flex: `${this.getAspectRatio(id) / total} 1 0%` }
},
getAspectRatio (id) {
const size = this.sizes[id]