diff options
| author | taehoon <th.dev91@gmail.com> | 2019-10-22 07:10:52 -0400 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-10-22 07:17:02 -0400 |
| commit | b9c281c55374bc440d0efbf33d1dd74d8ea6dfd0 (patch) | |
| tree | 929c946386f13ff250098e8659351b269e1251d5 /src/components | |
| parent | ad0452220619960f4f19c4557691d2f8f3438df9 (diff) | |
set flex amount correctly
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/gallery/gallery.js | 2 |
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] |
