aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf/Annotation.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-07-17 12:49:15 -0400
committerbob <bcz@cs.brown.edu>2019-07-17 12:49:15 -0400
commit0620688e08a771b0b5b8e00bdf606e3d17c801a5 (patch)
tree9df8991c7ddcb9475d3ffcb5f65542b11ad4e413 /src/client/views/pdf/Annotation.tsx
parentde6e2427cf5eed2805432a37b5284a4c8b934e62 (diff)
parent9a4b4e9367d9d1fd245450db62124f0e530e4175 (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
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);
}
}
);