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

Fix full player height for Chromium based browsers if fitToWrapper is set #48

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

otacke
Copy link
Contributor

@otacke otacke commented Jan 7, 2021

Problem: When using the full player mode with the fitToWrapper option, Chromium based browsers like Chrome, Edge or Opera will set a height of 0 unless the audio content's wrapper has an explicit size set. That problem occurs in Column, for example - audio content in full player mode with fitToWrapper set will not show on Chrome.

Fix: Apply Chromium's default height for audio elements (54 px) if a Chromium based browser is used in full player mode with the fitToWrapper option set.

Please note: Yes, it's kind of counter-intuitive to set an absolute height when the option is called fitToWrapper, but other browsers like Safari or Firefox have a fixed height anyway and will never scale the audio player to the full height of the wrapper. On the plus side, adding the height to this very audio library instead of setting it in every content type makes developing for H5P easier.

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

Successfully merging this pull request may close these issues.

1 participant