diff options
| author | Sam Wilkins <samwilkins333@gmail.com> | 2020-02-22 12:11:17 -0500 | 
|---|---|---|
| committer | Sam Wilkins <samwilkins333@gmail.com> | 2020-02-22 12:11:17 -0500 | 
| commit | f0dde351fcb6f8ba1d0e329375e0d86c20162603 (patch) | |
| tree | 6238496b1539bdc8453e031d90578abe93fd1835 /src/client/views/nodes/PDFBox.tsx | |
| parent | f15269bf5b1006bc8169892940dcf027ff6c023d (diff) | |
| parent | 14a357133b223ecb9a156e6b8b6dfbbe72f14dc5 (diff) | |
updated from master
Diffstat (limited to 'src/client/views/nodes/PDFBox.tsx')
| -rw-r--r-- | src/client/views/nodes/PDFBox.tsx | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx index e1c5fd27f..593f40f10 100644 --- a/src/client/views/nodes/PDFBox.tsx +++ b/src/client/views/nodes/PDFBox.tsx @@ -52,7 +52,7 @@ export class PDFBox extends DocAnnotatableComponent<FieldViewProps, PdfDocument>          this._initialScale = this.props.ScreenToLocalTransform().Scale;          const nw = this.Document._nativeWidth = NumCast(this.dataDoc[this.props.fieldKey + "-nativeWidth"], NumCast(this.Document._nativeWidth, 927));          const nh = this.Document._nativeHeight = NumCast(this.dataDoc[this.props.fieldKey + "-nativeHeight"], NumCast(this.Document._nativeHeight, 1200)); -        !this.Document._fitWidth && !this.Document.ignoreAspect && (this.Document._height = this.Document[WidthSym]() * (nh / nw)); +        !this.Document._fitWidth && (this.Document._height = this.Document[WidthSym]() * (nh / nw));          const backup = "oldPath";          const { Document } = this.props; @@ -93,7 +93,7 @@ export class PDFBox extends DocAnnotatableComponent<FieldViewProps, PdfDocument>          this.dataDoc[this.props.fieldKey + "-numPages"] = np;          this.dataDoc[this.props.fieldKey + "-nativeWidth"] = this.Document._nativeWidth = nw * 96 / 72;          this.dataDoc[this.props.fieldKey + "-nativeHeight"] = this.Document._nativeHeight = nh * 96 / 72; -        !this.Document._fitWidth && !this.Document.ignoreAspect && (this.Document._height = this.Document[WidthSym]() * (nh / nw)); +        !this.Document._fitWidth && (this.Document._height = this.Document[WidthSym]() * (nh / nw));      }      public search(string: string, fwd: boolean) { this._pdfViewer && this._pdfViewer.search(string, fwd); } @@ -140,12 +140,12 @@ export class PDFBox extends DocAnnotatableComponent<FieldViewProps, PdfDocument>      settingsPanel() {          const pageBtns = <> -            <button className="pdfBox-overlayButton-iconCont" key="back" title="Page Back" -                onPointerDown={e => e.stopPropagation()} onClick={e => this.backPage()} style={{ left: 45, top: 5 }}> +            <button className="pdfBox-overlayButton-back" key="back" title="Page Back" +                onPointerDown={e => e.stopPropagation()} onClick={e => this.backPage()} >                  <FontAwesomeIcon style={{ color: "white" }} icon={"arrow-left"} size="sm" />              </button> -            <button className="pdfBox-overlayButton-iconCont" key="fwd" title="Page Forward" -                onPointerDown={e => e.stopPropagation()} onClick={e => this.forwardPage()} style={{ left: 45, top: 5 }}> +            <button className="pdfBox-overlayButton-fwd" key="fwd" title="Page Forward" +                onPointerDown={e => e.stopPropagation()} onClick={e => this.forwardPage()} >                  <FontAwesomeIcon style={{ color: "white" }} icon={"arrow-right"} size="sm" />              </button>          </>; @@ -259,7 +259,7 @@ export class PDFBox extends DocAnnotatableComponent<FieldViewProps, PdfDocument>              if (!this._pdfjsRequested) {                  this._pdfjsRequested = true;                  const promise = Pdfjs.getDocument(pdfUrl.url.href).promise; -                promise.then(pdf => { runInAction(() => { this._pdf = pdf; console.log("promise"); }) }); +                promise.then(action(pdf => { this._pdf = pdf; console.log("promise"); }));              }          } | 
