aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-10-22 14:47:21 -0400
committertaehoon <th.dev91@gmail.com>2019-10-22 14:47:21 -0400
commitd76b83efc801cfc4bfd7cb0afa7d7289a16ec667 (patch)
tree4b2a10dc58dd0cd5e132eeb84c3137ff222923d0 /src
parentb9c281c55374bc440d0efbf33d1dd74d8ea6dfd0 (diff)
set flex-shrink and flex-basis explicitly
Diffstat (limited to 'src')
-rw-r--r--src/components/gallery/gallery.js2
1 files changed, 1 insertions, 1 deletions
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]