diff options
author | yipstanley <stanley_yip@brown.edu> | 2019-06-26 16:41:34 -0400 |
---|---|---|
committer | yipstanley <stanley_yip@brown.edu> | 2019-06-26 16:41:34 -0400 |
commit | 914eb8cb8e8ba25f3adb31da01bd005fb3bce234 (patch) | |
tree | cd0fcc4dc00e054df7b54b3e151522cdf9a718f9 /src/client/views/nodes/PDFBox.tsx | |
parent | bb4d4b4193466778562a383654dd4c195fe69da6 (diff) |
better search, prev/next annotations
Diffstat (limited to 'src/client/views/nodes/PDFBox.tsx')
-rw-r--r-- | src/client/views/nodes/PDFBox.tsx | 6 |
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) : ( |