diff options
author | bob <bcz@cs.brown.edu> | 2019-06-14 15:53:13 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-06-14 15:53:13 -0400 |
commit | 15e8341334419142f4a54db23cc643f18ba0e0f1 (patch) | |
tree | c89e80096b86d61a66e3d01f5232f7acabb643a8 /src/client/views/nodes/DocumentView.tsx | |
parent | 0b4f3c25471e51d27ddb33dc5ddafafb2c0c03e5 (diff) |
a few tweaks to fix unfreezing documents to give them a margin
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 6fe01963a..583fa3e1a 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -452,8 +452,9 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu render() { var scaling = this.props.ContentScaling(); - var nativeHeight = this.nativeHeight > 0 ? `${this.nativeHeight}px` : "100%"; var nativeWidth = this.nativeWidth > 0 ? `${this.nativeWidth}px` : "100%"; + let ph = this.props.PanelHeight(); + var nativeHeight = BoolCast(this.props.Document.ignoreAspect) ? this.props.PanelHeight() / this.props.ContentScaling() : this.nativeHeight > 0 ? `${this.nativeHeight}px` : "100%"; return ( <div className={`documentView-node${this.props.isTopMost ? "-topmost" : ""}`} ref={this._mainCont} |