You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +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:
@ -331,7 +331,7 @@ module.exports = React.createClass({
|
|||||||
// once images in the events load, make the scrollPanel check the
|
// once images in the events load, make the scrollPanel check the
|
||||||
// scroll offsets.
|
// scroll offsets.
|
||||||
_onImageLoad: function() {
|
_onImageLoad: function() {
|
||||||
var scrollPanel = this.refs.messagePanel;
|
var scrollPanel = this.refs.scrollPanel;
|
||||||
if (scrollPanel) {
|
if (scrollPanel) {
|
||||||
scrollPanel.checkScroll();
|
scrollPanel.checkScroll();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user