pass the layout to the resizer as a lamba to avoid having the wrong layout when filtering
This commit is contained in:
parent
a6914274b0
commit
d30ff13c18
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
layout: () => this._layout,
|
||||||
};
|
};
|
||||||
this.resizer = new Resizer(this.resizeContainer, Distributor, cfg);
|
this.resizer = new Resizer(this.resizeContainer, Distributor, cfg);
|
||||||
this.resizer.setClassNames({
|
this.resizer.setClassNames({
|
||||||
|
|
|
@ -320,7 +320,7 @@ export class Distributor extends FixedDistributor {
|
||||||
constructor(item, cfg) {
|
constructor(item, cfg) {
|
||||||
super(item);
|
super(item);
|
||||||
const layout = cfg.layout;
|
const layout = cfg.layout;
|
||||||
this._handle = layout.openHandle(item.id);
|
this._handle = layout().openHandle(item.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
finish() {
|
finish() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue