Basic mode: ar resets properly when switching from fullscreen to normal
This commit is contained in:
parent
32f868a91c
commit
48da83b75d
@ -66,8 +66,6 @@ if(Debug.debug)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("ext mode?", this.extensionMode, "basic/full:", ExtensionMode.Basic, ExtensionMode.Full, "is fullscreen?", PlayerData.isFullScreen())
|
|
||||||
|
|
||||||
if(Debug.debug){
|
if(Debug.debug){
|
||||||
console.log('[Resizer::setAr] <rid:'+this.resizerId+'> trying to set ar. New ar:', ar)
|
console.log('[Resizer::setAr] <rid:'+this.resizerId+'> trying to set ar. New ar:', ar)
|
||||||
}
|
}
|
||||||
@ -82,8 +80,10 @@ if(Debug.debug)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.extensionMode !== ExtensionMode.Full && !PlayerData.isFullScreen()) {
|
if (this.extensionMode !== ExtensionMode.Full && !PlayerData.isFullScreen() && ar !== 'reset') {
|
||||||
return; // don't actually apply or calculate css when using basic mode if not in fullscreen
|
// don't actually apply or calculate css when using basic mode if not in fullscreen
|
||||||
|
// ... unless we're resetting the aspect ratio to original
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! this.video) {
|
if (! this.video) {
|
||||||
|
Loading…
Reference in New Issue
Block a user