New issue
Advanced search Search tips

Issue 851014 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Jun 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Device toolbar inconsistent window.innerWidth/Height

Reported by log...@gmail.com, Jun 8 2018

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36

Steps to reproduce the problem:
1. Open the developer tools
2. Toggle device toolbar
3. In dev tools console type in window.innerHeight
4. Make rotate the device viewport twice (rotating it back to it's original state)
5. Again, check for window.innerHeight

What is the expected behavior?
The window.innerHeight and window.innerWidth variables should not change as were not changing any dimensions.

What went wrong?
The 2 variables get larger and larger.

Did this work before? N/A 

Chrome version: 63.0.3239.132  Channel: stable
OS Version: Debian 9
Flash Version: Unknown
 
chromebug.png
4.0 KB View Download
Labels: Needs-Milestone

Comment 2 by kozy@chromium.org, Jun 11 2018

Owner: l...@chromium.org
Status: Assigned (was: Unconfirmed)

Comment 3 by l...@chromium.org, Jun 11 2018

Labels: Needs-Feedback
Thanks for the report.  I was unable to reproduce this on Linux 63.0.3239.132 (tried with the Nexus 6P preset) and 69.0.3450.0 (Pixel 2 and Responsive).  Does this bug occur on Chrome Canary for you?

If it still occurs, could you please provide some info to help us investigate?
- Width/Height of the device you are emulating
- Device mode zoom level
- Browser viewport width/height

Comment 4 by log...@gmail.com, Jun 11 2018

I apologize for wasting your time as I found out the issue was in the web pages I was debugging as they had a canvas element size update function that was bound to onresize and when I rotated the viewport too fast it didn't get the right values and overflowed from the screen.

I suppose you may close this bug report now.

Comment 5 by l...@chromium.org, Jun 11 2018

Labels: -Needs-Feedback
Status: WontFix (was: Assigned)
Ah, that makes sense.  No worries, I'm glad it was resolved.

Sign in to add a comment