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 audio height in 100% mode #667

Merged
merged 1 commit into from
Jan 2, 2013
Merged

Fix audio height in 100% mode #667

merged 1 commit into from
Jan 2, 2013

Conversation

dougwilson
Copy link
Contributor

This changes the way the audio player works in the 100% width mode. Since audio elements don't actually have a height, the controls are the only height to the audio element. This makes it so the audio player will still be the height of the controls if the progress is set to autosize.

@dougwilson
Copy link
Contributor Author

Any chance you'll be able to look at this soon? This fixes an issue I have where the audio player appears in a container that is narrow and has audio elements set to max-width: 100%. The library draws the audio player, but scales down the height a bit, such that it is shorter than the controls, which causes content to flow under the player.
audio-height

@johndyer
Copy link
Collaborator

johndyer commented Jan 2, 2013

Sorry about that. Github wouldn't let me auto-merge and I forgot to manually push it in. I'll do it as soon as I can.

@dougwilson
Copy link
Contributor Author

No problem. Wasn't sure if it was just forgotten or needed more explanation or something. I'm going to rebase it right now, and then GitHub should let it auto merge.

This changes the way the audio player works in the 100% width mode.
Since audio elements don't actually have a height, the controls are
the only height to the audio element. This makes it so the audio
player will still be the height of the controls if the progress is
set to autosize.
@johndyer
Copy link
Collaborator

johndyer commented Jan 2, 2013

Awesome.

johndyer added a commit that referenced this pull request Jan 2, 2013
@johndyer johndyer merged commit 725ef5b into mediaelement:master Jan 2, 2013
@dougwilson dougwilson deleted the fix/audio-auto-width branch January 27, 2013 21:11
phuongdh pushed a commit to avalonmediasystem/mediaelement that referenced this pull request Oct 18, 2013
rexblack pushed a commit to rexblack/mediaelement that referenced this pull request May 22, 2014
rexblack pushed a commit to rexblack/mediaelement that referenced this pull request May 22, 2014
marmite22 pushed a commit to elucidat/mediaelement that referenced this pull request Dec 16, 2016
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.

None yet

2 participants