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

Commit e534974

Browse files
committed
Fix image size jumping regression
Fixes element-hq/element-web#6654
1 parent bf0ec24 commit e534974

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

@@ -208,6 +208,7 @@ export default class extends React.Component {
208208
}).done();
209209
}
210210
this._afterComponentDidMount();
211+
this.fixupHeight();
211212
}
212213

213214
// To be overridden by subclasses (e.g. MStickerBody) for further

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)