Merge pull request #202 from matrix-org/rav/fix_image_load_again

Fix checkScroll after image load
This commit is contained in:
Richard van der Hoff 2016-03-08 15:38:27 +00:00
commit f41c0d9bbf

View file

@ -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();
}