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:
@@ -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 */
|
||||
|
||||
|
Reference in New Issue
Block a user