aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/PDFBox.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-10-01 21:48:15 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-10-01 21:48:15 -0400
commit88b20ece053ae85e541f4903748ee311b9ecf81c (patch)
treecccfa6aaa34948bb158ab8f8d91ab91dc853d06f /src/client/views/nodes/PDFBox.tsx
parent128b8f61a8e3c7557bf7c3424a76f9c61ad6a56b (diff)
better fix than last one for icon sizes and default pdf dimensions.
Diffstat (limited to 'src/client/views/nodes/PDFBox.tsx')
-rw-r--r--src/client/views/nodes/PDFBox.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx
index a3b375be7..617b580dd 100644
--- a/src/client/views/nodes/PDFBox.tsx
+++ b/src/client/views/nodes/PDFBox.tsx
@@ -183,15 +183,15 @@ export class PDFBox extends DocComponent<FieldViewProps, PdfDocument>(PdfDocumen
let noPdf = !(pdfUrl instanceof PdfField) || !this._pdf;
if (!noPdf && (this.props.isSelected() || this.props.ScreenToLocalTransform().Scale < 2.5)) this._everActive = true;
return (!this._everActive ?
- <div className="pdfBox-title-outer" style={{ height: this.props.Document.nativeHeight ? undefined : NumCast(this.props.Document.nativeWidth) }} >
- <div className={classname} style={{ zIndex: 0 }}>
+ <div className="pdfBox-title-outer" >
+ <div className={classname} >
<strong className="pdfBox-title" >{` ${this.props.Document.title}`}</strong>
</div>
</div> :
<div className={classname} style={{
transformOrigin: "top left",
width: this.props.Document.fitWidth ? `${100 / this.props.ContentScaling()}%` : undefined,
- height: !this.props.Document.nativeHeight ? NumCast(this.props.Document.nativeWidth) : this.props.Document.fitWidth ? `${100 / this.props.ContentScaling()}%` : undefined,
+ height: this.props.Document.fitWidth ? `${100 / this.props.ContentScaling()}%` : undefined,
transform: `scale(${this.props.Document.fitWidth ? this.props.ContentScaling() : 1})`
}} onContextMenu={this.specificContextMenu} onPointerDown={(e: React.PointerEvent) => {
let hit = document.elementFromPoint(e.clientX, e.clientY);