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

update split.js and fix shrink bugs. fixes #333

This commit is contained in:
Kushagra Gour
2019-07-17 18:47:01 +05:30
parent de54874d4f
commit a607b9c9e5
7 changed files with 89 additions and 28 deletions

View File

@@ -40,6 +40,10 @@ export class SplitPane extends Component {
/* eslint-disable new-cap */
this.splitInstance = Split(Array.from(this.parent.children), options);
if (this.parent.children.length >= 5) {
window.splitInstance = this.splitInstance;
}
/* eslint-enable new-cap */
if (this.props.onSplit) {