diff options
-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); } |