Skip to content
This repository has been archived by the owner on Jan 8, 2021. It is now read-only.

Commit

Permalink
Fixed poster img extending outside player
Browse files Browse the repository at this point in the history
  • Loading branch information
Phuong Dinh committed May 22, 2013
1 parent c9971f4 commit 10ef749
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/css/mediaelementplayer.css
Expand Up @@ -54,6 +54,9 @@
left: 0;
}
.mejs-poster img {
max-width: 100%;
max-height: 100%;
margin: 0 auto;
border: 0;
padding: 0;
border: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/js/mep-player.js
Expand Up @@ -875,7 +875,7 @@
posterImg = posterDiv.find('img');

if (posterImg.length == 0) {
posterImg = $('<img width="100%" height="100%" />').appendTo(posterDiv);
posterImg = $('<img />').appendTo(posterDiv);
}

posterImg.attr('src', url);
Expand Down

0 comments on commit 10ef749

Please sign in to comment.