diff options
| author | Michael Foiani <sotech117@Michaels-MacBook-Pro-5.local> | 2022-08-18 18:27:16 +0200 |
|---|---|---|
| committer | Michael Foiani <sotech117@Michaels-MacBook-Pro-5.local> | 2022-08-18 18:27:16 +0200 |
| commit | 4683ee7d40ab28d75002b674f52faf4e6c3cd965 (patch) | |
| tree | 9091d7c15ee46750a43d188e27696e4266b90530 /src/client/views/nodes/VideoBox.tsx | |
| parent | 31995aa918e2683256c2f817d81c0fc892939486 (diff) | |
| parent | 5a425e5cf18115921ecb4e7cf931e65f45dab8e2 (diff) | |
merge with newest master
Diffstat (limited to 'src/client/views/nodes/VideoBox.tsx')
| -rw-r--r-- | src/client/views/nodes/VideoBox.tsx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/client/views/nodes/VideoBox.tsx b/src/client/views/nodes/VideoBox.tsx index a3d501153..0ff15f93b 100644 --- a/src/client/views/nodes/VideoBox.tsx +++ b/src/client/views/nodes/VideoBox.tsx @@ -831,16 +831,15 @@ export class VideoBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp // stretches vertically or horizontally depending on video orientation so video fits full screen fullScreenSize() { if (this._videoRef && this._videoRef.videoHeight / this._videoRef.videoWidth > 1) { - return { height: '100%' }; - } else { - return { width: '100%' }; + //prettier-ignore + return ({ height: '100%' }); } + //prettier-ignore + return ({ width: '100%' }); } // for zoom slider, sets timeline waveform zoom - zoom = (zoom: number) => { - this.timeline?.setZoom(zoom); - }; + zoom = (zoom: number) => this.timeline?.setZoom(zoom); // plays link playLink = (doc: Doc) => { |
