aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf/Annotation.tsx
diff options
context:
space:
mode:
authorkimdahey <claire_kim1@brown.edu>2019-07-17 10:55:31 -0400
committerkimdahey <claire_kim1@brown.edu>2019-07-17 10:55:31 -0400
commitee385cd02a6ce99d59eb02a768bb587b566328e9 (patch)
treed3308280d3975a3fd090b0e548b268fb2ad20304 /src/client/views/pdf/Annotation.tsx
parente3527a5f0334156a70b36980b8188ceb15ea5de3 (diff)
jumping to a region from a link now shows the whole region supposedly
Diffstat (limited to 'src/client/views/pdf/Annotation.tsx')
-rw-r--r--src/client/views/pdf/Annotation.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/pdf/Annotation.tsx b/src/client/views/pdf/Annotation.tsx
index 104241237..ed7081b1d 100644
--- a/src/client/views/pdf/Annotation.tsx
+++ b/src/client/views/pdf/Annotation.tsx
@@ -75,7 +75,7 @@ class RegionAnnotation extends React.Component<IRegionAnnotationProps> {
() => this.props.parent.Index,
() => {
if (this.props.parent.Index === this.props.index) {
- this.props.parent.scrollTo(this.props.y * scale - (NumCast(this.props.parent.props.parent.Document.pdfHeight) / 2));
+ this.props.parent.scrollTo(this.props.y * scale);
}
}
);