aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authorFawn <fangrui_tong@brown.edu>2019-06-19 12:50:58 -0400
committerFawn <fangrui_tong@brown.edu>2019-06-19 12:50:58 -0400
commitf362dbfc237536c6c4a8c6d088c3dc818080f7c2 (patch)
tree99088a6afb1a26752a808d249eff40e2818639ed /src/client/documents/Documents.ts
parent8e5afb5bbb47324a381b5184254e77eba7bd8536 (diff)
both tail ends of a cut link appear on hover/focus of an anchor
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 002de8b5f..79ba433c8 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -99,8 +99,18 @@ export namespace DocUtils {
linkDocProto.anchor2 = target;
linkDocProto.anchor2Page = target.curPage;
linkDocProto.anchor2Groups = new List<Doc>([]);
+
linkDocProto.context = targetContext;
+ let proxy1 = Docs.TextDocument({ width: 300, height: 100, borderRounding: 0 });
+ let proxy1Proto = Doc.GetProto(proxy1);
+ let proxy2 = Docs.TextDocument({ width: 300, height: 100, borderRounding: 0 });
+ let proxy2Proto = Doc.GetProto(proxy2);
+
+ linkDocProto.proxy1 = proxy1; // src: 1 targ: 2
+ linkDocProto.proxy2 = proxy2; // src: 2 targ: 1
+
+
LinkManager.Instance.allLinks.push(linkDoc);
return linkDoc;
@@ -377,7 +387,7 @@ export namespace Docs {
}
/*
-
+
this template requires an additional style setting on the collectionView-cont to make the layout relative
.collectionView-cont {