diff --git a/src/components/views/rooms/RoomList.js b/src/components/views/rooms/RoomList.js index bbfc4649d2..534988922f 100644 --- a/src/components/views/rooms/RoomList.js +++ b/src/components/views/rooms/RoomList.js @@ -183,7 +183,7 @@ module.exports = React.createClass({ componentDidMount: function() { this.dispatcherRef = dis.register(this.onAction); const cfg = { - layout: this._layout, + getLayout: () => this._layout, }; this.resizer = new Resizer(this.resizeContainer, Distributor, cfg); this.resizer.setClassNames({ diff --git a/src/resizer/distributors/roomsublist2.js b/src/resizer/distributors/roomsublist2.js index e70e6893c6..a715087630 100644 --- a/src/resizer/distributors/roomsublist2.js +++ b/src/resizer/distributors/roomsublist2.js @@ -319,8 +319,7 @@ class Handle { export class Distributor extends FixedDistributor { constructor(item, cfg) { super(item); - const layout = cfg.layout; - this._handle = layout.openHandle(item.id); + this._handle = cfg.getLayout().openHandle(item.id); } finish() {