-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: fix full screen overflow on Windows Chrome #491
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like windows chrome was giving slightly larger values for getBoundingClientRect. I'll verify this with IE/Edge tomorrow. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Windows Chrome getBoundingClientRect values: |
||
width: this.wrapperEl.clientWidth | ||
}; | ||
|
||
// We need the width to be atleast wide enough for the controls | ||
// to not overflow and fit properly | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prettier having fun here