You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-21 07:42:09 +03:00
create ResizeNotifier to derive which areas of the app resize and emit
This commit is contained in:
@ -149,6 +149,8 @@ module.exports = React.createClass({
|
||||
|
||||
componentWillMount: function() {
|
||||
this._pendingFillRequests = {b: null, f: null};
|
||||
this.props.resizeNotifier.on("middlePanelResized", this.onResize);
|
||||
|
||||
this.resetScrollState();
|
||||
},
|
||||
|
||||
@ -171,6 +173,7 @@ module.exports = React.createClass({
|
||||
//
|
||||
// (We could use isMounted(), but facebook have deprecated that.)
|
||||
this.unmounted = true;
|
||||
this.props.resizeNotifier.removeListener("middlePanelResized", this.onResize);
|
||||
},
|
||||
|
||||
onScroll: function(ev) {
|
||||
|
Reference in New Issue
Block a user