You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-11 01:21:03 +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:
@ -467,6 +467,13 @@ var TimelinePanel = React.createClass({
|
||||
return null;
|
||||
},
|
||||
|
||||
// makes the TimelinePanel update itself after it is resized (due to other
|
||||
// changes in the DOM)
|
||||
onResize: function() {
|
||||
if (!this.refs.messagePanel) { return; }
|
||||
this.refs.messagePanel.onResize();
|
||||
},
|
||||
|
||||
_initTimeline: function(props) {
|
||||
var initialEvent = props.eventId;
|
||||
var pixelOffset = props.eventPixelOffset;
|
||||
|
Reference in New Issue
Block a user