1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-31 10:40:10 +02:00

Show preview dimension when resizing the main split. fixes #317

This commit is contained in:
Kushagra Gour
2018-11-05 15:41:03 +05:30
parent 1fc1d3a3f0
commit 507fb69bce
6 changed files with 46 additions and 7 deletions

View File

@@ -12,6 +12,10 @@ export class SplitPane extends Component {
}
this.updateSplit();
}
componentWillUnmount() {
this.splitInstance.destroy();
delete this.splitInstance;
}
hasGutter() {
return (
[...this.parent.children].indexOf(
@@ -35,6 +39,7 @@ export class SplitPane extends Component {
/* eslint-disable new-cap */
this.splitInstance = Split([...this.parent.children], options);
console.log('recreating split');
/* eslint-enable new-cap */