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:
parent
f41c0d9bbf
commit
b45c256427
3 changed files with 20 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue