diff options
author | Melissa Zhang <mzhang19096@gmail.com> | 2020-09-30 22:01:44 -0600 |
---|---|---|
committer | Melissa Zhang <mzhang19096@gmail.com> | 2020-09-30 22:01:44 -0600 |
commit | 09aab9558a26a2d7c8e3d485aca578960af72821 (patch) | |
tree | b53bdc6f2fcb269b74a097f56bfeec248e7f918b /src/client/goldenLayout.js | |
parent | bd827b97c719abeadf243ba4f8b2ba417badb65b (diff) | |
parent | 852ddf70b7ed3d027eb5cb8415df4df77b8652a6 (diff) |
pull from master
Diffstat (limited to 'src/client/goldenLayout.js')
-rw-r--r-- | src/client/goldenLayout.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/goldenLayout.js b/src/client/goldenLayout.js index 2d4283b02..293762709 100644 --- a/src/client/goldenLayout.js +++ b/src/client/goldenLayout.js @@ -3204,7 +3204,7 @@ * If this was the last content item, remove this node as well */ } else if (!(this instanceof lm.items.Root) && this.config.isClosable === true) { - this.parent.removeChild(this); + if (!this.parent.parent.isRoot || this.parent.contentItems.length > 1) this.parent.removeChild(this); // bcz: added test for last stack } }, |