From 5e7af00f24c713d3afbe54ae7558b58206b85a5b Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sun, 18 Nov 2018 20:40:57 +0100 Subject: [PATCH] Fix #50 That was easier than expected. --- js/lib/PlayerData.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/lib/PlayerData.js b/js/lib/PlayerData.js index 1089648..6744e78 100644 --- a/js/lib/PlayerData.js +++ b/js/lib/PlayerData.js @@ -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;