Device toolbar inconsistent window.innerWidth/Height
Reported by
log...@gmail.com,
Jun 8 2018
|
||||
Issue descriptionUserAgent: 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
,
Jun 11 2018
,
Jun 11 2018
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
,
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.
,
Jun 11 2018
Ah, that makes sense. No worries, I'm glad it was resolved. |
||||
►
Sign in to add a comment |
||||
Comment 1 by krajshree@chromium.org
, Jun 11 2018