diff options
author | Zachary Zhang <zacharyzhang7@gmail.com> | 2024-03-12 16:30:43 -0400 |
---|---|---|
committer | Zachary Zhang <zacharyzhang7@gmail.com> | 2024-03-12 16:30:43 -0400 |
commit | 2edfef5ac0e394cdbb8687cd3f325ff994722ef2 (patch) | |
tree | cc8209830a7f51ea0014e88a171dd36c1b9da0b3 /src/client/goldenLayout.js | |
parent | 84e75f944a45c3b98ec70c75d2abc47051b10b03 (diff) | |
parent | 08c9a1fa70bcacc7dcbe103eca6209a96f00967c (diff) |
Merge branch 'zach-starter' of https://github.com/brown-dash/Dash-Web into zach-starter
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 2b94d35ee..cb1dfd76a 100644 --- a/src/client/goldenLayout.js +++ b/src/client/goldenLayout.js @@ -4727,7 +4727,7 @@ */ } else { type = isVertical ? 'column' : 'row'; - if (this.parent.contentItems.length === 1) { + if (this.parent.contentItems.length === 1 && this.contentItems.length === 1) { let grandparent = this.parent.parent; let correctRowOrCol = this.layoutManager.createContentItem({ type: type }, this); grandparent.replaceChild(this.parent, correctRowOrCol); |