aboutsummaryrefslogtreecommitdiff
path: root/src/components/still-image/still-image.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2019-10-23 16:17:56 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2019-10-23 16:17:56 +0000
commitf5c37231e14a0d55753505ccf7991714e8cf9057 (patch)
tree4b2a10dc58dd0cd5e132eeb84c3137ff222923d0 /src/components/still-image/still-image.js
parentcd956185207aca84666d38f516b6c4b666ee846b (diff)
parentd76b83efc801cfc4bfd7cb0afa7d7289a16ec667 (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.js4
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