mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-21 22:41:07 +02:00
Merge pull request #1909 from matrix-org/dbkr/fix_image_size_jump
Fix image size jumping regression
This commit is contained in:
commit
cc87b73de2
@ -1,5 +1,6 @@
|
||||
/*
|
||||
Copyright 2015, 2016 OpenMarket Ltd
|
||||
Copyright 2018 New Vector Ltd
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@ -140,7 +141,6 @@ export default class extends React.Component {
|
||||
}
|
||||
|
||||
onImageLoad() {
|
||||
this.fixupHeight();
|
||||
this.props.onWidgetLoad();
|
||||
}
|
||||
|
||||
@ -207,6 +207,7 @@ export default class extends React.Component {
|
||||
});
|
||||
}).done();
|
||||
}
|
||||
this.fixupHeight();
|
||||
this._afterComponentDidMount();
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,6 @@ export default class MStickerBody extends MImageBody {
|
||||
}
|
||||
|
||||
_onImageLoad() {
|
||||
this.fixupHeight();
|
||||
this.setState({
|
||||
placeholderClasses: 'mx_MStickerBody_placeholder_invisible',
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user