diff options
author | bobzel <zzzman@gmail.com> | 2020-09-08 23:32:41 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-08 23:32:41 -0400 |
commit | 63296223883c1aa9018140abb951e16f614b4365 (patch) | |
tree | a623ee82e12aabb0babca437bf33252f601ed695 /src/client/views/nodes/ContentFittingDocumentView.tsx | |
parent | f5c00261d8d936abdec22abfae94dd972c0f9e4a (diff) |
fixed treeview to show pdf icons at proper size. fixed link anchors dots to not block pointer events from the rest of their document.
Diffstat (limited to 'src/client/views/nodes/ContentFittingDocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/ContentFittingDocumentView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/ContentFittingDocumentView.tsx b/src/client/views/nodes/ContentFittingDocumentView.tsx index 55149a44b..c0bcc0a6d 100644 --- a/src/client/views/nodes/ContentFittingDocumentView.tsx +++ b/src/client/views/nodes/ContentFittingDocumentView.tsx @@ -28,10 +28,10 @@ export class ContentFittingDocumentView extends React.Component<DocumentViewProp nativeWidth = () => returnVal(this.props.NativeWidth?.(), NumCast(this.layoutDoc?._nativeWidth || this.props.DataDoc?.[Doc.LayoutFieldKey(this.layoutDoc) + "-nativeWidth"], - (this.freezeDimensions && this.layoutDoc ? this.layoutDoc[WidthSym]() : this.props.PanelWidth()))); + (this.freezeDimensions && this.layoutDoc ? this.layoutDoc[WidthSym]() : this.props.PanelWidth()))) nativeHeight = () => returnVal(this.props.NativeHeight?.(), NumCast(this.layoutDoc?._nativeHeight || this.props.DataDoc?.[Doc.LayoutFieldKey(this.layoutDoc) + "-nativeHeight"], - (this.freezeDimensions && this.layoutDoc ? this.layoutDoc[HeightSym]() : this.props.PanelHeight()))); + (this.freezeDimensions && this.layoutDoc ? this.layoutDoc[HeightSym]() : this.props.PanelHeight()))) @computed get scaling() { const wscale = this.props.PanelWidth() / this.nativeWidth(); if (wscale * this.nativeHeight() > this.props.PanelHeight()) { |