Skip to content

Commit

Permalink
Fix een kleine bug dat wanneer je uit fullscreen gaat, hij alsnog de …
Browse files Browse the repository at this point in the history
…width parameter plaatst.
nholtman committed Sep 24, 2024
1 parent 6dd9b9f commit 8791a78
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package.describe({
name: 'johndyer:mediaelement',
summary: '*Official* MediaElement.js: <video> and <audio> made easy. One file. Any browser. Same UI.',
version: '7.0.6',
version: '7.0.7',
git: 'https://github.com/mediaelement/mediaelement'
});

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@A-VISION-BV/mediaelement",
"license": "MIT",
"version": "7.0.6",
"version": "7.0.7",
"main": "full.js",
"repository": {
"type": "git",
7 changes: 6 additions & 1 deletion src/js/features/fullscreen.js
Original file line number Diff line number Diff line change
@@ -327,7 +327,12 @@ Object.assign(MediaElementPlayer.prototype, {
removeClass(t.getElement(t.container), `${t.options.classPrefix}container-fullscreen`);

if (t.options.setDimensions) {
t.getElement(t.container).style.width = `${t.normalWidth}px`;
if (t.options.useMaxWidthForContainer) {
t.getElement(t.container).style.maxWidth = `${t.normalWidth}px`;
t.getElement(t.container).style.width = '';
} else {
t.getElement(t.container).style.width = `${t.normalWidth}px`;
}
t.getElement(t.container).style.height = `${t.normalHeight}px`;

if (isNative) {

0 comments on commit 8791a78

Please sign in to comment.