diff options
| author | bob <bcz@cs.brown.edu> | 2020-03-06 13:06:34 -0500 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2020-03-06 13:06:34 -0500 |
| commit | 6a2b210f32cb70646a5d9097e667c0d199057901 (patch) | |
| tree | ad7349e71dd3ae25717d744b29cd53800cf63704 /src/client/views/collections/CollectionTreeView.tsx | |
| parent | 288e4d24b61d281819b7f0b5bb697edbcc9ed173 (diff) | |
fixes to documentBox to work with templates. changed tree view to select documents. fixed panning in freeform view to account for scale correctly. increased max renderdepth to 12
Diffstat (limited to 'src/client/views/collections/CollectionTreeView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionTreeView.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionTreeView.tsx b/src/client/views/collections/CollectionTreeView.tsx index 28f620157..deff3d177 100644 --- a/src/client/views/collections/CollectionTreeView.tsx +++ b/src/client/views/collections/CollectionTreeView.tsx @@ -184,6 +184,11 @@ class TreeView extends React.Component<TreeViewProps> { EditableView.loadId = doc[Id]; return this.props.addDocument(doc); })} + onClick={() => { + SelectionManager.DeselectAll(); + Doc.UserDoc().SelectedDocs = new List([this.props.document]); + return false; + }} OnTab={undoBatch((shift?: boolean) => { EditableView.loadId = this.dataDoc[Id]; shift ? this.props.outdentDocument?.() : this.props.indentDocument?.(); |
