From 6e23623c2803fbada6abe007b7475a3eecd295ed Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Mon, 7 Mar 2016 22:23:14 +0000 Subject: [PATCH] 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. --- src/components/structures/MessagePanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/MessagePanel.js b/src/components/structures/MessagePanel.js index 0fe105e7ba..45f0b4f0f8 100644 --- a/src/components/structures/MessagePanel.js +++ b/src/components/structures/MessagePanel.js @@ -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(); }