aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DocumentDecorations.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-10-18 01:29:33 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-10-18 01:29:33 -0400
commitc9a84a7d74efa820d1dc55d8ef93bec40315be4a (patch)
tree0fbb938f0dba79ec26da5300860ea5dcf29ebc2d /src/client/views/DocumentDecorations.tsx
parentf0e8502be6488418370d4cd3dbb6c60ffd30f658 (diff)
link lines are working properly except when things get panned/moved ... need to turn off or get updates somehow.
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-rw-r--r--src/client/views/DocumentDecorations.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx
index 6e8ba2d3d..8409a34da 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -111,7 +111,6 @@ export class DocumentDecorations extends React.Component<{}, { value: string }>
Doc.GetProto(docTemplate).layoutNative = layoutNative;
swapViews(fieldTemplate, "", "layoutNative", layoutNative);
layoutNative.layout = StrCast(fieldTemplateView.props.Document.layout).replace(/fieldKey={"[^"]*"}/, `fieldKey={"${metaKey}"}`);
- layoutNative.backgroundLayout = StrCast(fieldTemplateView.props.Document.backgroundLayout).replace(/fieldKey={"[^"]*"}/, `fieldKey={"${metaKey}"}`);
}
}
}
@@ -343,7 +342,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }>
let iconDoc: Doc | undefined = await Cast(doc.minimizedDoc, Doc);
if (!iconDoc || !DocumentManager.Instance.getDocumentView(iconDoc)) {
- const layout = StrCast(doc.backgroundLayout, StrCast(doc.layout, FieldView.LayoutString(DocumentView)));
+ const layout = StrCast(doc.layout, FieldView.LayoutString(DocumentView));
iconDoc = this.createIcon([docView], layout);
}
return iconDoc;