Skip to content

Commit

Permalink
Sizing fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed Oct 31, 2023
1 parent 4b3ea56 commit 7d57d67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/player/AtomVideoPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ export default class AtomVideoPlayer extends AtomControl {
const { videoWidth, videoHeight } = video;
const eW = video.offsetWidth * videoHeight / videoWidth;
const maxWidth = (100*(this.element.offsetWidth - eW) / this.element.offsetWidth);
if (maxWidth < 100) {
if (maxWidth > 50 && maxWidth < 100) {
this.maxWidth = `${maxWidth}%`;
}

Expand Down

0 comments on commit 7d57d67

Please sign in to comment.