Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit cc87b73

Browse files
authored
Merge pull request #1909 from matrix-org/dbkr/fix_image_size_jump
Fix image size jumping regression
2 parents bf0ec24 + a700630 commit cc87b73

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/views/messages/MImageBody.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
22
Copyright 2015, 2016 OpenMarket Ltd
3+
Copyright 2018 New Vector Ltd
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.
@@ -140,7 +141,6 @@ export default class extends React.Component {
140141
}
141142

142143
onImageLoad() {
143-
this.fixupHeight();
144144
this.props.onWidgetLoad();
145145
}
146146

@@ -207,6 +207,7 @@ export default class extends React.Component {
207207
});
208208
}).done();
209209
}
210+
this.fixupHeight();
210211
this._afterComponentDidMount();
211212
}
212213

src/components/views/messages/MStickerBody.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ export default class MStickerBody extends MImageBody {
4040
}
4141

4242
_onImageLoad() {
43-
this.fixupHeight();
4443
this.setState({
4544
placeholderClasses: 'mx_MStickerBody_placeholder_invisible',
4645
});

0 commit comments

Comments
 (0)