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

videojs-ima fixed style units #492

Closed
mysuf opened this issue Jan 26, 2018 · 3 comments
Closed

videojs-ima fixed style units #492

mysuf opened this issue Jan 26, 2018 · 3 comments
Assignees

Comments

@mysuf
Copy link

mysuf commented Jan 26, 2018

How to reproduce this issue:
change font-size of .video-js and play non-linear ad from Google IMA example tags

Example of problematic code:

.video-js.vjs-paused .bumpable-ima-ad-container, .video-js.vjs-playing:hover .bumpable-ima-ad-container, .video-js.vjs-user-active.vjs-playing .bumpable-ima-ad-container {
   margin-top: -40px;
}

How to fix this issue:
Use font relative units. For example in case above it should be margin-top: -3em; (or around this value)

As videojs use em units, most of sizes and offsets is related to base font-size of .video-js. So plugins should use same approach to be responsive. You can inspire with native .vjs-text-track-display overlayer.

@shawnbuso
Copy link
Contributor

Thanks for the report - I'll take a look and make the change once I verify that it doesn't break other stuff.

@mysuf
Copy link
Author

mysuf commented Feb 3, 2018

@shawnbuso
Now I also faced issue related to bounds of videojs player. Your overlayer overflows player's top bound.

How to reproduce this issue:
Put two players in column without any gap. Bottom will block control bar of the top player by overlayer of bottom player.

How to fix this issue:
You should either use variable height of this overlayer like .vjs-text-track-display does or if you need preserve fixed height, apply overflow: hidden to entire player like .video-js { overflow: hidden }.

@shawnbuso
Copy link
Contributor

This sounds like a separate issue than the first one - could you open a new issue for this so we can track them separately? Thanks!

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

No branches or pull requests

3 participants