aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/PDFBox.tsx
diff options
context:
space:
mode:
authoryipstanley <stanley_yip@brown.edu>2019-06-14 15:47:53 -0400
committeryipstanley <stanley_yip@brown.edu>2019-06-14 15:47:53 -0400
commit4a5fd3e230fe354dd6c579cad0d5f99a40d230db (patch)
tree9e4306606ca40d4ff0bb79784ee6d0c892703527 /src/client/views/nodes/PDFBox.tsx
parent2ef1dd2089ad991f1d4897022f2d28c2eb130837 (diff)
parent0b4f3c25471e51d27ddb33dc5ddafafb2c0c03e5 (diff)
Merge branch 'pdf_impl' of https://github.com/browngraphicslab/Dash-Web into pdf_impl
Diffstat (limited to 'src/client/views/nodes/PDFBox.tsx')
-rw-r--r--src/client/views/nodes/PDFBox.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx
index 6ee62bbad..a3c818c91 100644
--- a/src/client/views/nodes/PDFBox.tsx
+++ b/src/client/views/nodes/PDFBox.tsx
@@ -73,7 +73,8 @@ export class PDFBox extends DocComponent<FieldViewProps, PdfDocument>(PdfDocumen
return (
<div onScroll={this.onScroll}
style={{
- overflowY: "scroll", overflowX: "hidden", height: `${NumCast(this.props.Document.nativeHeight ? this.props.Document.nativeHeight : 300)}px`,
+ height: "100%",
+ overflowY: "scroll", overflowX: "hidden",
marginTop: `${NumCast(this.props.ContainingCollectionView!.props.Document.panY)}px`
}}
onWheel={(e: React.WheelEvent) => e.stopPropagation()} className={classname}>