aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/PDFBox.tsx
diff options
context:
space:
mode:
authoryipstanley <stanley_yip@brown.edu>2019-06-26 16:41:34 -0400
committeryipstanley <stanley_yip@brown.edu>2019-06-26 16:41:34 -0400
commit914eb8cb8e8ba25f3adb31da01bd005fb3bce234 (patch)
treecd0fcc4dc00e054df7b54b3e151522cdf9a718f9 /src/client/views/nodes/PDFBox.tsx
parentbb4d4b4193466778562a383654dd4c195fe69da6 (diff)
better search, prev/next annotations
Diffstat (limited to 'src/client/views/nodes/PDFBox.tsx')
-rw-r--r--src/client/views/nodes/PDFBox.tsx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx
index c0f2d313a..44028ddf7 100644
--- a/src/client/views/nodes/PDFBox.tsx
+++ b/src/client/views/nodes/PDFBox.tsx
@@ -143,6 +143,12 @@ export class PDFBox extends DocComponent<FieldViewProps, PdfDocument>(PdfDocumen
this.applyFilter();
}
+ scrollTo(y: number) {
+ if (this._mainCont.current) {
+ this._mainCont.current.scrollTo({ top: y });
+ }
+ }
+
settingsPanel() {
return !this.props.active() ? (null) :
(