From 62ccfeecd551cc92fb9d8642f2133b53d6482292 Mon Sep 17 00:00:00 2001 From: Akash Kava <39438041+ackava@users.noreply.github.com> Date: Tue, 31 Oct 2023 16:38:15 +0530 Subject: [PATCH] Style fixed --- src/player/AtomVideoPlayer.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/player/AtomVideoPlayer.tsx b/src/player/AtomVideoPlayer.tsx index 15cb5abd..06ca2982 100644 --- a/src/player/AtomVideoPlayer.tsx +++ b/src/player/AtomVideoPlayer.tsx @@ -465,12 +465,10 @@ export default class AtomVideoPlayer extends AtomControl { this.updateVolume(); this.currentTimeSpan.textContent = durationText(0, this.duration); this.updateProgress(); - const { videoWidth, videoHeight } = this.video; - if (videoHeight > videoWidth || this.element.offsetHeight > this.element.offsetWidth) { - this.maxWidth = "100%"; - } else { - this.maxWidth = (1 - (this.video.offsetWidth - this.video.videoWidth) / this.video.offsetWidth)*100 + "%"; - } + // const { video } = this; + // const { videoWidth, videoHeight } = video; + // const eW = video.offsetWidth * videoHeight / videoWidth; + AtomBinder.refreshValue(this, "duration"); }} event-pause={() => this.state = "paused"}