Skip to content

Bug fix: Make sure we calculate correctly the video player height - #1083

Merged
johndyer merged 1 commit into
mediaelement:masterfrom
gymglish:master
Mar 27, 2014
Merged

johndyer merged 1 commit into
mediaelement:masterfrom
gymglish:master

Conversation

@LeResKP

@LeResKP LeResKP commented Jan 21, 2014

Copy link
Copy Markdown
Contributor

If we want the video player get the same size of its container we set defaultVideoWidth and defaultVideoHeight to 100%. In that case the calculation of newHeight is not correct, so we get the container height

Comment thread src/js/mep-player.js Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't you be assigning that value to newHeight?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh god, a bad copy/paste...
The request is updated!

… calculate newHeight so we get the container height
johndyer added a commit that referenced this pull request Mar 27, 2014
Bug fix: Make sure we calculate correctly the video player height
@johndyer
johndyer merged commit 99076bc into mediaelement:master Mar 27, 2014
rexblack pushed a commit to rexblack/mediaelement that referenced this pull request May 22, 2014
Bug fix: Make sure we calculate correctly the video player height
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.

3 participants