diff options
author | bob <bcz@cs.brown.edu> | 2019-06-20 17:11:29 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-06-20 17:11:29 -0400 |
commit | 46a2a9e1f10b63feeb21a1e186daeaef2ccbcda4 (patch) | |
tree | b0e8ebeff84345794a0056f94057d2aa48f0f133 /src/client/views/nodes/DocumentView.tsx | |
parent | a39b2854b848006c19460685d7bf4005a9f650ae (diff) | |
parent | a5dc0e04add05f2f5bf1e17f1ac0a5e0aba1ea41 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index acd5e4cf2..280804630 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -89,6 +89,7 @@ const schema = createSchema({ nativeWidth: "number", nativeHeight: "number", backgroundColor: "string", + hidden: "boolean" }); export const positionSchema = createSchema({ @@ -538,6 +539,9 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu } render() { + if (this.Document.hidden) { + return null; + } var scaling = this.props.ContentScaling(); var nativeWidth = this.nativeWidth > 0 ? `${this.nativeWidth}px` : "100%"; var nativeHeight = BoolCast(this.props.Document.ignoreAspect) ? this.props.PanelHeight() / this.props.ContentScaling() : this.nativeHeight > 0 ? `${this.nativeHeight}px` : "100%"; |