diff options
author | bob <bcz@cs.brown.edu> | 2020-01-14 17:15:36 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2020-01-14 17:15:36 -0500 |
commit | 15f2148f40c351589e18c1f9ac3b39a8de366a40 (patch) | |
tree | c4cc01aa395a1b5a25b1f69f3ea26ab8e0c9c9f0 /src/client/views/nodes/DocumentContentsView.tsx | |
parent | 2705a625ee1d57bfe9eaea78c068d0daa254426e (diff) |
fixes for stacking views to honor panelwidth/height -- allows stacking panels to be placed in Content fitting document views.
Diffstat (limited to 'src/client/views/nodes/DocumentContentsView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentContentsView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentContentsView.tsx b/src/client/views/nodes/DocumentContentsView.tsx index 8f6bfc8e1..66886165e 100644 --- a/src/client/views/nodes/DocumentContentsView.tsx +++ b/src/client/views/nodes/DocumentContentsView.tsx @@ -82,7 +82,7 @@ export class DocumentContentsView extends React.Component<DocumentViewProps & { return this.props.DataDoc; } get layoutDoc() { - return this.props.DataDoc === undefined ? Doc.expandTemplateLayout(Doc.Layout(this.props.Document), this.props.Document) : Doc.Layout(this.props.Document); + return Doc.expandTemplateLayout(Doc.Layout(this.props.Document), this.props.Document); } CreateBindings(): JsxBindings { |