You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
pass the layout to the resizer as a lamba to avoid having the wrong layout when filtering
This commit is contained in:
@@ -183,7 +183,7 @@ module.exports = React.createClass({
|
||||
componentDidMount: function() {
|
||||
this.dispatcherRef = dis.register(this.onAction);
|
||||
const cfg = {
|
||||
layout: this._layout,
|
||||
layout: () => this._layout,
|
||||
};
|
||||
this.resizer = new Resizer(this.resizeContainer, Distributor, cfg);
|
||||
this.resizer.setClassNames({
|
||||
|
||||
@@ -320,7 +320,7 @@ export class Distributor extends FixedDistributor {
|
||||
constructor(item, cfg) {
|
||||
super(item);
|
||||
const layout = cfg.layout;
|
||||
this._handle = layout.openHandle(item.id);
|
||||
this._handle = layout().openHandle(item.id);
|
||||
}
|
||||
|
||||
finish() {
|
||||
|
||||
Reference in New Issue
Block a user