Skip to content

Commit

Permalink
Fix: fix full screen overflow on Windows Chrome (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Press authored Nov 20, 2017
1 parent 80e07c6 commit eee1525
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/lib/viewers/media/DashViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit eee1525

Please sign in to comment.