Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vm-scrim only covers half of the video #361

Open
mdg583 opened this issue Mar 29, 2023 · 1 comment
Open

vm-scrim only covers half of the video #361

mdg583 opened this issue Mar 29, 2023 · 1 comment

Comments

@mdg583
Copy link

mdg583 commented Mar 29, 2023

For some reason the vm-scrim control only covers the right half of the video.

If I inspect the html element, adding "left:0" style to the div with class "scrim gradient gradientUp" in the element fixes the issue. But I'm unable to apply the style through the web-page css styles.

The problem exists for me on Firefox, Chrome and Edge on Windows. I assume the issue may be related to some other css style on my page?

My player is loaded like this:

<vm-player #player>
      <vm-youtube cookies="true" video-id="VIDEOID"></vm-youtube>
      <vm-default-ui no-controls>
      <vm-default-controls
        hide-on-mouse-leave
        active-duration="2000"
      ></vm-default-controls>
      </vm-default-ui>
    </vm-player>
@mdg583
Copy link
Author

mdg583 commented Mar 31, 2023

The problem seems to be present when the vm-player element has inherited the text-align:center style. Adding a style rule that sets text-align:left seems to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant