mirror of
https://github.com/element-hq/element-web
synced 2024-10-26 04:35:55 +03:00
Fix checkScroll after image load
Make the onImageLoad handler call checkScroll on the right thing. This was
originally done in commit 99d2392
, but got broken in the Great RoomView
Refactor of February 2016.
This commit is contained in:
parent
606fdcb8df
commit
6e23623c28
1 changed files with 1 additions and 1 deletions
|
@ -331,7 +331,7 @@ module.exports = React.createClass({
|
|||
// once images in the events load, make the scrollPanel check the
|
||||
// scroll offsets.
|
||||
_onImageLoad: function() {
|
||||
var scrollPanel = this.refs.messagePanel;
|
||||
var scrollPanel = this.refs.scrollPanel;
|
||||
if (scrollPanel) {
|
||||
scrollPanel.checkScroll();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue