Fix one kind of scroll jump
by calling onWidgetLoad when the <img> in MImageBody loads
This commit is contained in:
parent
b26cf23574
commit
641add4964
1 changed files with 1 additions and 0 deletions
|
@ -230,6 +230,7 @@ module.exports = React.createClass({
|
|||
<a href={contentUrl} onClick={this.onClick}>
|
||||
<img className="mx_MImageBody_thumbnail" src={thumbUrl} ref="image"
|
||||
alt={content.body}
|
||||
onLoad={this.props.onWidgetLoad}
|
||||
onMouseEnter={this.onImageEnter}
|
||||
onMouseLeave={this.onImageLeave} />
|
||||
</a>
|
||||
|
|
Loading…
Reference in a new issue