diff options
author | bobzel <zzzman@gmail.com> | 2024-02-26 12:57:48 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-02-26 12:57:48 -0500 |
commit | d99f64efe9e69f2159f1ad8f851b24533a996ba5 (patch) | |
tree | ff7e6b7d815b7b73847c7f10af877afb81a9e64d /src/client/goldenLayout.js | |
parent | 27306bd0ae259241182d90cc62225609dfc8da74 (diff) |
fixed some string types to be enumerations for dropAction. fixed bug in golden layout dragging where a stack's tabs could disappear.
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); |