From 139600ab7e8a82a31744cd3798247236cd5616fc Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Fri, 3 May 2024 22:08:56 -0400
Subject: fixed pdf rendering.   fixed cropping images.  fixed zooming out of
 an image that is fitWidth to set scroll bar properly.

---
 src/client/views/nodes/PDFBox.tsx | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

(limited to 'src/client/views/nodes/PDFBox.tsx')

diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx
index b8b9f63a9..1dc194c42 100644
--- a/src/client/views/nodes/PDFBox.tsx
+++ b/src/client/views/nodes/PDFBox.tsx
@@ -656,11 +656,9 @@ export class PDFBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
                 );
             else {
                 if (!PDFBox.pdfpromise.get(href)) PDFBox.pdfpromise.set(href, Pdfjs.getDocument(href).promise);
-                PDFBox.pdfpromise.get(href)?.then(
-                    action((pdf: any) => {
-                        PDFBox.pdfcache.set(href, (this._pdf = pdf));
-                    })
-                );
+                PDFBox.pdfpromise.get(href)?.then((pdf: any) => {
+                    PDFBox.pdfcache.set(href, (this._pdf = pdf));
+                });
             }
         }
         return pdfView ?? this.renderTitleBox;
-- 
cgit v1.2.3-70-g09d2

