diff options
| author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-05-19 02:18:50 -0400 |
|---|---|---|
| committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-05-19 02:18:50 -0400 |
| commit | 4667498586c19f7fff1e411f5842e8ae6903b39a (patch) | |
| tree | f7361ee28ebbb76690c8dd1cf0b0c3dbcc6040c6 /src/client/views/collections | |
| parent | 3f12e4a4b776010e09d12a1adfb1d243675bcd6e (diff) | |
Added readonly mode and fixed being able to set id of new workspace
Diffstat (limited to 'src/client/views/collections')
| -rw-r--r-- | src/client/views/collections/CollectionDockingView.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx index 5aa268e36..eeec3eaf0 100644 --- a/src/client/views/collections/CollectionDockingView.tsx +++ b/src/client/views/collections/CollectionDockingView.tsx @@ -438,10 +438,11 @@ export class DockedFrameRenderer extends React.Component<DockedFrameProps> { get previewPanelCenteringOffset() { return (this._panelWidth - this.nativeWidth() * this.contentScaling()) / 2; } addDocTab = (doc: Doc, location: string) => { - if (location === "onRight") + if (location === "onRight") { CollectionDockingView.Instance.AddRightSplit(doc); - else + } else { CollectionDockingView.Instance.AddTab(this._stack, doc); + } } get content() { if (!this._document) { |
