aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-05-21 18:35:04 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-05-21 18:35:04 -0400
commit3020cfcf20d187c976a7f386a95bec0c41cba06b (patch)
tree7061da972f8cf56a3d8bfe37e6579f59c15e97c8 /src
parent2845bb8a29d4592964b707d82ca3b07ca15b632c (diff)
fixes
Diffstat (limited to 'src')
-rw-r--r--src/client/util/DocumentManager.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/util/DocumentManager.ts b/src/client/util/DocumentManager.ts
index 94d77f467..fefd3a972 100644
--- a/src/client/util/DocumentManager.ts
+++ b/src/client/util/DocumentManager.ts
@@ -123,16 +123,18 @@ export class DocumentManager {
const curPage = NumCast(contextDoc.curPage, page);
if (page !== curPage) contextDoc.curPage = page;
}
- docDelegate.libraryBrush = true;
let docView = DocumentManager.Instance.getDocumentView(doc);
if (docView) {
+ docView.props.Document.libraryBrush = true;
docView.props.focus(docView.props.Document);
} else {
if (!contextDoc) {
const actualDoc = docDelegate ? (makeCopy ? Doc.MakeCopy(docDelegate) : docDelegate) : Doc.MakeDelegate(doc);
+ actualDoc.libraryBrush = true;
(dockFunc || CollectionDockingView.Instance.AddRightSplit)(actualDoc);
} else {
let contextView = DocumentManager.Instance.getDocumentView(contextDoc);
+ docDelegate.libraryBrush = true;
if (contextView) {
contextDoc.panTransformType = "Ease";
contextView.props.focus(contextDoc);