New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 604926 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
(currently inactive on Chromium)
Closed: May 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug

Blocking:
issue 595826



Sign in to add a comment

document.visualViewport.clientWidth/Height includes scrollbar width

Project Member Reported by bokan@chromium.org, Apr 19 2016

Issue description

Chrome Version       : 51.0.2704.7
OS Version: All

What steps will reproduce the problem?
1. Enable the visual-viewport-api by enabling experimental web platform features
2. Find a page with vertical scrolling
3. In devtools console, get the value of document.visualViewport.clientWidth

What is the expected result?
The width should not include the scrollbar

What happens instead of that?
The width includes the scrollbar (i.e. matches innerWidth rather than documentElement.clientWidth)


Please provide any additional information below. Attach a screenshot if
possible.

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



 

Comment 1 by bokan@chromium.org, Apr 19 2016

Labels: -OS-Linux OS-All

Comment 2 by ymalik@chromium.org, Apr 21 2016

Cc: -ymalik@chromium.org bokan@chromium.org
Owner: ymalik@chromium.org
Status: Started (was: Assigned)
Project Member

Comment 3 by bugdroid1@chromium.org, May 13 2016

Comment 4 by ymalik@chromium.org, May 27 2016

Status: Fixed (was: Started)

Comment 5 by ymalik@chromium.org, Jun 23 2016

Blocking: 595826

Sign in to add a comment