diff options
| author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-07-29 20:07:27 -0400 |
|---|---|---|
| committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-07-29 20:07:27 -0400 |
| commit | c8074da503a5f4d252417c652709f7a393d7d158 (patch) | |
| tree | 2afea51b8e74df8d0f81efcf108b6e778bc688d4 | |
| parent | 7b2bbf518779db3d5ef389f6a9f0d41aa2862999 (diff) | |
Partially fixed add tab
| -rw-r--r-- | src/client/views/collections/CollectionDockingView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx index ab4d1aa62..3a402b6b2 100644 --- a/src/client/views/collections/CollectionDockingView.tsx +++ b/src/client/views/collections/CollectionDockingView.tsx @@ -210,14 +210,14 @@ export class CollectionDockingView extends React.Component<SubCollectionViewProp docs.push(document); } let docContentConfig = CollectionDockingView.makeDocumentConfig(document, dataDocument); - var newContentItem = stack.layoutManager.createContentItem(docContentConfig, this._goldenLayout); + var newContentItem = this._goldenLayout.createContentItem(docContentConfig, this._goldenLayout); if (stack === undefined) { if (this._goldenLayout.root.contentItems.length === 0) { this._goldenLayout.root.addChild(newContentItem); } else { const rowOrCol = this._goldenLayout.root.contentItems[0]; if (rowOrCol.contentItems.length) { - rowOrCol.contentItems[0].addChild(newContentItem); + rowOrCol.contentItems[0].addChild(newContentItem.contentItems[0]); } else { rowOrCol.addChild(newContentItem); } |
