Skip to content

Commit

Permalink
Removed black area from the viewport when flash player is used for pl…
Browse files Browse the repository at this point in the history
…ayback in non IE browsers
  • Loading branch information
milax committed Aug 25, 2017
1 parent bd2373d commit 247b8ce
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/mediaelement-and-player.js
Expand Up @@ -5984,7 +5984,7 @@ var FlashMediaElementRenderer = {
settings.push('width="${flashWidth}"');
settings.push('height="${flashHeight}"');
} else {
settings.push('style="position: absolute; left: -9999em; top: -99999em;"');
settings.push('style="position: fixed; left: -9999em; top: -9999em;"');
}

flash.flashWrapper.innerHTML = '<embed ' + settings.join(' ') + '>';
Expand Down
2 changes: 1 addition & 1 deletion build/mediaelement-and-player.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/mediaelement.js
Expand Up @@ -1743,7 +1743,7 @@ var FlashMediaElementRenderer = {
settings.push('width="${flashWidth}"');
settings.push('height="${flashHeight}"');
} else {
settings.push('style="position: absolute; left: -9999em; top: -99999em;"');
settings.push('style="position: fixed; left: -9999em; top: -9999em;"');
}

flash.flashWrapper.innerHTML = '<embed ' + settings.join(' ') + '>';
Expand Down
2 changes: 1 addition & 1 deletion build/mediaelement.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/js/renderers/flash.js
Expand Up @@ -373,7 +373,7 @@ const FlashMediaElementRenderer = {
settings.push('height="${flashHeight}"');
}
else {
settings.push('style="position: absolute; left: -9999em; top: -99999em;"');
settings.push('style="position: fixed; left: -9999em; top: -9999em;"');
}

flash.flashWrapper.innerHTML = `<embed ${settings.join(' ')}>`;
Expand Down

0 comments on commit 247b8ce

Please sign in to comment.