Merge pull request #2566 from matrix-org/bwindels/fixfilterwhitespace

Fix: being able to size sections in leftpanel larger than their content while filtering
pull/21833/head
Bruno Windels 2019-02-04 18:55:18 +00:00 committed by GitHub
commit 24db3e4804
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -183,7 +183,7 @@ module.exports = React.createClass({
componentDidMount: function() { componentDidMount: function() {
this.dispatcherRef = dis.register(this.onAction); this.dispatcherRef = dis.register(this.onAction);
const cfg = { const cfg = {
layout: this._layout, getLayout: () => this._layout,
}; };
this.resizer = new Resizer(this.resizeContainer, Distributor, cfg); this.resizer = new Resizer(this.resizeContainer, Distributor, cfg);
this.resizer.setClassNames({ this.resizer.setClassNames({

View File

@ -319,8 +319,7 @@ class Handle {
export class Distributor extends FixedDistributor { export class Distributor extends FixedDistributor {
constructor(item, cfg) { constructor(item, cfg) {
super(item); super(item);
const layout = cfg.layout; this._handle = cfg.getLayout().openHandle(item.id);
this._handle = layout.openHandle(item.id);
} }
finish() { finish() {