aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-06-14 13:09:15 -0400
committerbob <bcz@cs.brown.edu>2019-06-14 13:09:15 -0400
commit0b4f3c25471e51d27ddb33dc5ddafafb2c0c03e5 (patch)
tree0771dc5494d659ad8f4fdfaeb392c7f26a9cd1f5 /src/client/views/nodes
parent41c290677030cde827c438d9bfda0dbeac64aa14 (diff)
fixes for full screen.
Diffstat (limited to 'src/client/views/nodes')
-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 acb430deb..cce7b2631 100644
--- a/src/client/views/nodes/PDFBox.tsx
+++ b/src/client/views/nodes/PDFBox.tsx
@@ -65,7 +65,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}>