You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-12 12:41:46 +03:00
Don't forceUpdate the message panel on resize
We don't really need to forceUpdate() the entire timeline panel every time something might resize it. It is sufficient to forceUpdate the ScrollPanel.
This commit is contained in:
@ -1028,7 +1028,7 @@ module.exports = React.createClass({
|
||||
// telling it about it. This also ensures that the scroll offset is
|
||||
// updated.
|
||||
if (this.refs.messagePanel) {
|
||||
this.refs.messagePanel.forceUpdate();
|
||||
this.refs.messagePanel.onResize();
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user