aboutsummaryrefslogtreecommitdiff
path: root/src/components/gallery/gallery.js
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-10-22 07:10:52 -0400
committertaehoon <th.dev91@gmail.com>2019-10-22 07:17:02 -0400
commitb9c281c55374bc440d0efbf33d1dd74d8ea6dfd0 (patch)
tree929c946386f13ff250098e8659351b269e1251d5 /src/components/gallery/gallery.js
parentad0452220619960f4f19c4557691d2f8f3438df9 (diff)
set flex amount correctly
Diffstat (limited to 'src/components/gallery/gallery.js')
-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 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]