diff options
author | bobzel <zzzman@gmail.com> | 2020-10-28 09:23:12 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-10-28 09:23:12 -0400 |
commit | 22cefba3ccf1cea2dc3362c070547f2233af4f2a (patch) | |
tree | 11e7d41fe9e05e9c21436d2b0fafc00172043b00 /src/client/views/nodes/ContentFittingDocumentView.tsx | |
parent | 803ed1bdfd6d234245ab2663c6cd19fa386143b7 (diff) |
fixed warnings
Diffstat (limited to 'src/client/views/nodes/ContentFittingDocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/ContentFittingDocumentView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/ContentFittingDocumentView.tsx b/src/client/views/nodes/ContentFittingDocumentView.tsx index bc3ad5bce..0c52b9044 100644 --- a/src/client/views/nodes/ContentFittingDocumentView.tsx +++ b/src/client/views/nodes/ContentFittingDocumentView.tsx @@ -40,7 +40,7 @@ export class ContentFittingDocumentView extends React.Component<DocumentViewProp @computed get panelWidth() { return this.nativeWidth() && !this.props.Document._fitWidth ? this.nativeWidth() * this.contentScaling() : this.props.PanelWidth(); } @computed get panelHeight() { if (this.nativeHeight()) { - if (!this.props.Document._fitWidth) return this.nativeHeight() * this.contentScaling() + if (!this.props.Document._fitWidth) return this.nativeHeight() * this.contentScaling(); else return this.panelWidth / Doc.NativeAspect(this.layoutDoc, this.props.DataDoc, this.freezeDimensions) || 1; } return this.props.PanelHeight(); |