mirror of https://github.com/vector-im/riot-web
Merge pull request #2566 from matrix-org/bwindels/fixfilterwhitespace
Fix: being able to size sections in leftpanel larger than their content while filteringpull/21833/head
commit
24db3e4804
|
@ -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({
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue