From eee1525cc71e7b75fb5469a0785e153a3025f164 Mon Sep 17 00:00:00 2001 From: Jeremy Press Date: Mon, 20 Nov 2017 13:24:35 -0800 Subject: [PATCH] Fix: fix full screen overflow on Windows Chrome (#491) --- src/lib/viewers/media/DashViewer.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/lib/viewers/media/DashViewer.js b/src/lib/viewers/media/DashViewer.js index f9ecfdc84..d7aa1ffc3 100644 --- a/src/lib/viewers/media/DashViewer.js +++ b/src/lib/viewers/media/DashViewer.js @@ -328,9 +328,8 @@ class DashViewer extends VideoBaseViewer { */ shakaErrorHandler(shakaError) { const error = new Error( - `Shaka error. Code = ${shakaError.detail.code}, Category = ${shakaError.detail.category}, Severity = ${ - shakaError.detail.severity - }, Data = ${shakaError.detail.data.toString()}` + `Shaka error. Code = ${shakaError.detail.code}, Category = ${shakaError.detail + .category}, Severity = ${shakaError.detail.severity}, Data = ${shakaError.detail.data.toString()}` ); error.displayMessage = __('error_refresh'); @@ -492,7 +491,10 @@ class DashViewer extends VideoBaseViewer { resize() { let width = this.videoWidth || 0; let height = this.videoHeight || 0; - const viewport = this.wrapperEl.getBoundingClientRect(); + const viewport = { + height: this.wrapperEl.clientHeight, + width: this.wrapperEl.clientWidth + }; // We need the width to be atleast wide enough for the controls // to not overflow and fit properly