diff options
author | Mohammad Amoush <mohammad_amoush@brown.edu> | 2019-07-29 20:22:32 -0400 |
---|---|---|
committer | Mohammad Amoush <mohammad_amoush@brown.edu> | 2019-07-29 20:22:32 -0400 |
commit | 19ae7ac4996436bb88fc19991895619eab113c8f (patch) | |
tree | 2402ac547fe7b7fdf7ad1a984401e92465a68ab9 | |
parent | 893e748f53e801dadfa31d7b1914c790742fbcde (diff) | |
parent | c8074da503a5f4d252417c652709f7a393d7d158 (diff) |
Merge branch 'presentation-preview-mohammad' of https://github.com/browngraphicslab/Dash-Web into presentation-preview-mohammad
-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); } |