diff options
| author | bobzel <zzzman@gmail.com> | 2022-09-14 14:37:43 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-09-14 14:37:43 -0400 |
| commit | 081873137bfa860a183e10402073a36605d4d189 (patch) | |
| tree | 3b2b5b20d153f93bb6eef1f0a6c371084f4c8b28 /src/client/documents | |
| parent | 9e24fb58f5cb7fca663c30e32b59dc70b80fa739 (diff) | |
| parent | 1dd8e0bf7901700ef0eded57169cd4078a61cdd0 (diff) | |
Merge branch 'master' into sharing-jenny
Diffstat (limited to 'src/client/documents')
| -rw-r--r-- | src/client/documents/Documents.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index 63080f8cf..14e6fe5bb 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -169,6 +169,7 @@ export class DocumentOptions { _raiseWhenDragged?: boolean; // whether a document is brought to front when dragged. _hideContextMenu?: boolean; // whether the context menu can be shown _viewType?: string; // sub type of a collection + viewType?: string; // sub type of a collection _gridGap?: number; // gap between items in masonry view _viewScale?: number; // how much a freeform view has been scaled (zoomed) _overflow?: string; // set overflow behavior @@ -1142,7 +1143,7 @@ export namespace Docs { } export function DockDocument(documents: Array<Doc>, config: string, options: DocumentOptions, id?: string) { - return InstanceFromProto(Prototypes.get(DocumentType.COL), new List(documents), { freezeChildren: 'remove|add', ...options, _viewType: CollectionViewType.Docking, dockingConfig: config }, id); + return InstanceFromProto(Prototypes.get(DocumentType.COL), new List(documents), { freezeChildren: 'remove|add', ...options, viewType: CollectionViewType.Docking, _viewType: CollectionViewType.Docking, dockingConfig: config }, id); } export function DirectoryImportDocument(options: DocumentOptions = {}) { |
