Skip to content
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

Merged
merged 3 commits into from
Nov 20, 2017
Merged

Fix: fix full screen overflow on Windows Chrome #491

merged 3 commits into from
Nov 20, 2017

Conversation

jeremypress
Copy link
Contributor

No description provided.

`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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prettier having fun here

@@ -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,
Copy link
Contributor Author

Choose a reason for hiding this comment

The 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.

Copy link
Contributor Author

@jeremypress jeremypress Nov 16, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Windows Chrome getBoundingClientRect values: {height: 1275.3333740234375 , width: 1665.3333740234375}
Element clientHeight and ClientWidth values: {height: 1275, width: 1665}

@jeremypress jeremypress merged commit eee1525 into box:master Nov 20, 2017
@jeremypress jeremypress deleted the fullscreen-windows-chrome branch November 20, 2017 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants