aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/VideoBox.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-03-15 13:30:22 -0400
committerbob <bcz@cs.brown.edu>2019-03-15 13:30:22 -0400
commit487a74d28501cbdc86f0d02fef656754ed22ae19 (patch)
tree884258eb69515752925186572681300a4945d54d /src/client/views/nodes/VideoBox.tsx
parentc17605b4d1fe04429b029ff5a161f31ce19f5fd4 (diff)
fixed various issues with schema/videos
Diffstat (limited to 'src/client/views/nodes/VideoBox.tsx')
-rw-r--r--src/client/views/nodes/VideoBox.tsx16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/client/views/nodes/VideoBox.tsx b/src/client/views/nodes/VideoBox.tsx
index fef278cec..8c1ee669f 100644
--- a/src/client/views/nodes/VideoBox.tsx
+++ b/src/client/views/nodes/VideoBox.tsx
@@ -48,16 +48,14 @@ export class VideoBox extends React.Component<FieldViewProps> {
//setTimeout(action(() => this._loaded = true), 500);
return (
- <div style={{ width: "100%", height: "100%" }} >
- <Measure onResize={this.setScaling}>
- {({ measureRef }) =>
- <video className="videobox-cont" ref={measureRef}>
- <source src={path} type="video/mp4" />
- Not supported.
+ <Measure onResize={this.setScaling}>
+ {({ measureRef }) =>
+ <video className="videobox-cont" ref={measureRef}>
+ <source src={path} type="video/mp4" />
+ Not supported.
</video>
- }
- </Measure>
- </div>
+ }
+ </Measure>
)
}
} \ No newline at end of file