diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-10-23 16:17:56 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-10-23 16:17:56 +0000 |
| commit | f5c37231e14a0d55753505ccf7991714e8cf9057 (patch) | |
| tree | 4b2a10dc58dd0cd5e132eeb84c3137ff222923d0 /src/components/still-image/still-image.js | |
| parent | cd956185207aca84666d38f516b6c4b666ee846b (diff) | |
| parent | d76b83efc801cfc4bfd7cb0afa7d7289a16ec667 (diff) | |
Merge branch 'improve-gallery-sizing-logic' into 'develop'
Improve gallery sizing logic
See merge request pleroma/pleroma-fe!975
Diffstat (limited to 'src/components/still-image/still-image.js')
| -rw-r--r-- | src/components/still-image/still-image.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/still-image/still-image.js b/src/components/still-image/still-image.js index 02e98f19..9c2d446b 100644 --- a/src/components/still-image/still-image.js +++ b/src/components/still-image/still-image.js @@ -3,7 +3,8 @@ const StillImage = { 'src', 'referrerpolicy', 'mimetype', - 'imageLoadError' + 'imageLoadError', + 'imageLoadHandler' ], data () { return { @@ -17,6 +18,7 @@ const StillImage = { }, methods: { onLoad () { + this.imageLoadHandler && this.imageLoadHandler(this.$refs.src) const canvas = this.$refs.canvas if (!canvas) return const width = this.$refs.src.naturalWidth |
