That was easier than expected.
This commit is contained in:
Tamius Han 2018-11-18 20:40:57 +01:00
parent 6eab0cf828
commit 5e7af00f24

View File

@ -317,8 +317,8 @@ class PlayerData {
if (this.dimensions.fullscreen != isFs) {
this.dimensions = {
fullscreen: isFs,
width: screen.width,
height: screen.height
width: isFs ? screen.width : this.video.offsetWidth,
height: isFs ? screen.height : this.video.offsetHeight
};
return true;
}
@ -331,8 +331,8 @@ class PlayerData {
this.dimensions = {
fullscreen: isFs,
width: screen.width,
height: screen.height
width: isFs ? screen.width : this.video.offsetWidth,
height: isFs ? screen.height : this.video.offsetHeight
};
return true;