aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-09-12 14:45:24 -0400
committerbob <bcz@cs.brown.edu>2019-09-12 14:45:24 -0400
commit612dbe02514f7f34c066aee3b5dd09c4a99b113a (patch)
tree21f793c62abc1c7afffec84dbadddb2b8c878d97 /src
parent03579f16e2c18ef8af578f5e65da3939ee9860ee (diff)
moved customLayout to data doc. need to allow for multiple customLayouts now.
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/DocumentView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index 4bb31ef1d..3f0b62511 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -438,7 +438,7 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu
@undoBatch
makeNativeViewClicked = (): void => {
- this.props.Document.customLayout = this.props.Document.layout;
+ (this.dataDoc || Doc.GetProto(this.props.Document)).customLayout = this.props.Document.layout;
this.props.Document.layout = this.props.Document.nativeLayout;
this.props.Document.type = this.props.Document.nativeType;
this.props.Document.nativeWidth = this.props.Document.nativeNativeWidth;