aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionFreeForm/CollectionFreeFormLinkView.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-10-17 19:47:01 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-10-17 19:47:01 -0400
commit929584999080616adb350df638b640f770c6f44a (patch)
tree7734175d7a9ad4e91114a022f52cc26004d612fd /src/client/views/collections/collectionFreeForm/CollectionFreeFormLinkView.tsx
parent1566b94d5ee5da0004540e1b2e5234ae922dcc51 (diff)
fixed some display issues with templates and linking
Diffstat (limited to 'src/client/views/collections/collectionFreeForm/CollectionFreeFormLinkView.tsx')
-rw-r--r--src/client/views/collections/collectionFreeForm/CollectionFreeFormLinkView.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormLinkView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormLinkView.tsx
index fe92eed10..a59fda6d9 100644
--- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormLinkView.tsx
+++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormLinkView.tsx
@@ -37,8 +37,8 @@ export class CollectionFreeFormLinkView extends React.Component<CollectionFreeFo
}
render() {
// let l = this.props.LinkDocs;
- let a = this.props.A;
- let b = this.props.B;
+ let a = this.props.A.layout instanceof Doc ? this.props.A.layout : this.props.A;
+ let b = this.props.B.layout instanceof Doc ? this.props.B.layout : this.props.B;
let x1 = NumCast(a.x) + (BoolCast(a.isMinimized, false) ? 5 : NumCast(a.width) / 2);
let y1 = NumCast(a.y) + (BoolCast(a.isMinimized, false) ? 5 : NumCast(a.height) / 2);
let x2 = NumCast(b.x) + (BoolCast(b.isMinimized, false) ? 5 : NumCast(b.width) / 2);