Remove fixupHeight call from MStickerBody
This commit is contained in:
parent
bbcf2fea53
commit
b41b9aa4fa
1 changed files with 0 additions and 3 deletions
|
@ -40,7 +40,6 @@ export default class MStickerBody extends MImageBody {
|
||||||
}
|
}
|
||||||
|
|
||||||
_onImageLoad() {
|
_onImageLoad() {
|
||||||
this.fixupHeight();
|
|
||||||
this.setState({
|
this.setState({
|
||||||
placeholderClasses: 'mx_MStickerBody_placeholder_invisible',
|
placeholderClasses: 'mx_MStickerBody_placeholder_invisible',
|
||||||
});
|
});
|
||||||
|
@ -110,8 +109,6 @@ export default class MStickerBody extends MImageBody {
|
||||||
// The pixel size of sticker images is generally larger than their intended display
|
// The pixel size of sticker images is generally larger than their intended display
|
||||||
// size so they render at native reolution on HiDPI displays. We therefore need to
|
// size so they render at native reolution on HiDPI displays. We therefore need to
|
||||||
// explicity set the size so they render at the intended size.
|
// explicity set the size so they render at the intended size.
|
||||||
// XXX: This will be clobberred when we run fixupHeight(), but we need to do it
|
|
||||||
// here otherwise the stickers are momentarily displayed at the pixel size.
|
|
||||||
const imageStyle = {
|
const imageStyle = {
|
||||||
height: content.info.h,
|
height: content.info.h,
|
||||||
// leave the browser the calculate the width automatically
|
// leave the browser the calculate the width automatically
|
||||||
|
|
Loading…
Reference in a new issue