diff options
author | bobzel <zzzman@gmail.com> | 2020-08-27 20:36:19 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-08-27 20:36:19 -0400 |
commit | a4b379c77ba579ad3d2c04ea08bc019347f2f56a (patch) | |
tree | 214ac3cb252ad065930252df53b77570b3f7d651 /src/client/views/DocumentDecorations.tsx | |
parent | 2e0e34df0db385acfcd4079fae6e01fd4a2234fa (diff) |
fixed open on right from Doc Decorations to remove context field. fixed presBox to find best target instead of assuming targetDoc is always displayed
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-rw-r--r-- | src/client/views/DocumentDecorations.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index 3d6301ae9..fad6b1a0b 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -185,8 +185,10 @@ export class DocumentDecorations extends React.Component<{}, { value: string }> if (e.button === 0) { const selectedDocs = SelectionManager.SelectedDocuments(); if (selectedDocs.length) { - //CollectionDockingView.Instance?.OpenFullScreen(selectedDocs[0], selectedDocs[0].props.LibraryPath); - CollectionDockingView.AddRightSplit(Doc.MakeAlias(selectedDocs[0].props.Document), selectedDocs[0].props.LibraryPath); + const alias = Doc.MakeAlias(selectedDocs[0].props.Document); + alias.context = undefined; + //CollectionDockingView.Instance?.OpenFullScreen(selectedDocs[0]); + CollectionDockingView.AddRightSplit(alias); } } SelectionManager.DeselectAll(); |