aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf/PDFViewer.tsx
diff options
context:
space:
mode:
authorAndy Rickert <andrew_rickert@brown.edu>2020-08-05 15:09:49 -0400
committerAndy Rickert <andrew_rickert@brown.edu>2020-08-05 15:09:49 -0400
commit6612acac309767c6deafc45d931e42ff1ee4c86b (patch)
tree28a0a6e3c0ecf4b7e0e2fe09b04d9d288640100c /src/client/views/pdf/PDFViewer.tsx
parent2ab24585afee218bb1bd4e2cb9b29860f72a6587 (diff)
fixes for bob
Diffstat (limited to 'src/client/views/pdf/PDFViewer.tsx')
-rw-r--r--src/client/views/pdf/PDFViewer.tsx3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx
index 7f31931a9..264d3e6c6 100644
--- a/src/client/views/pdf/PDFViewer.tsx
+++ b/src/client/views/pdf/PDFViewer.tsx
@@ -338,7 +338,6 @@ export class PDFViewer extends ViewBoxAnnotatableComponent<IViewerProps, PdfDocu
this.Index = Math.min(this.Index + 1, this.allAnnotations.length - 1);
this.scrollToAnnotation(this.allAnnotations.sort((a, b) => NumCast(a.y) - NumCast(b.y))[this.Index]);
this.Document.searchIndex = this.Index;
- this.Document.length = this.allAnnotations.length;
}
@@ -408,7 +407,6 @@ export class PDFViewer extends ViewBoxAnnotatableComponent<IViewerProps, PdfDocu
query: searchString
});
this.Document.searchIndex = this.Index;
- this.Document.length = this.allAnnotations.length;
}
else if (this._mainCont.current) {
const executeFind = () => {
@@ -423,7 +421,6 @@ export class PDFViewer extends ViewBoxAnnotatableComponent<IViewerProps, PdfDocu
this._mainCont.current.addEventListener("pagesloaded", executeFind);
this._mainCont.current.addEventListener("pagerendered", executeFind);
this.Document.searchIndex = this.Index;
- this.Document.length = this.allAnnotations.length;
}
}