diff options
author | bob <bcz@cs.brown.edu> | 2019-09-16 13:11:29 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-09-16 13:11:29 -0400 |
commit | 44175322d76505ac732435876464fe1f17005ad2 (patch) | |
tree | 2060cb68cfb436103329de8d24714afc57b79698 /src/client/views/nodes/DocumentView.tsx | |
parent | 36a4caa28a7a83823027e6f0af47ffb1878ae86b (diff) |
show title and parse font size changes
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index bf7e7df97..9b97705a0 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -583,7 +583,7 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu document.nativeIgnoreAspect = undefined; }); - public static makeCustomViewClicked = undoBatch((document: Doc): void => { + public static makeCustomViewClicked = undoBatch((document: Doc, showTitle = undefined): void => { document.nativeLayout = document.layout; document.nativeType = document.type; document.nativeNativeWidth = document.nativeWidth; @@ -604,6 +604,7 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu let metaKey = "data"; let proto = Doc.GetProto(docTemplate); Doc.MakeTemplate(fieldTemplate, metaKey, proto); + fieldTemplate.showTitle = showTitle; Doc.ApplyTemplateTo(docTemplate, document, undefined, false); document.customLayout = document.layout; |