New issue
Advanced search Search tips

Issue 648873 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: May 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

horizontal scrollbar appears when not enough space left for a vertical scrollbar

Reported by domischreib@gmail.com, Sep 21 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2866.0 Safari/537.36

Example URL:
http://codepen.io/dominikschreiber/pen/gwLZQp

Steps to reproduce the problem:
1. open http://codepen.io/dominikschreiber/pen/gwLZQp
2. observe that #scrollcontainer has a horizontal scrollbar
3. if you add overflow-y:hidden to #should-not-have-a-scrollbar, the horizontal scrollbar vanishes

What is the expected behavior?
there should be no visible scrollbars as the #content fits into the #scrollcontainer

What went wrong?
the horizontal scrollbar appears on the #scrollcontainer.

I assume something goes wrong when deciding to show the horizontal scrollbar. It seems that if "width of content" + "width of a potential vertical scrollbar" < "width of parent", a horizontal scrollbar is shown, although the vertical scrollbar is not needed.

If you set overflow-y:hidden on the #scrollcontainer or decrease the width of the #content so that a vertical scrollbar would fit as well, the horizontal scrollbar goes away.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? Yes worked in Chrome 51, wrong behavior appeared in Chrome 52 (stable)

Does this work in other browsers? Yes 

Chrome version: 55.0.2866.0  Channel: canary
OS Version: 10.0
Flash Version: Shockwave Flash 23.0 r0
 
chrome-52_horizontal-scrollbar.png
1.0 KB View Download
I can confirm this bug with Chromium Version 53.0.2785.113 (64-bit) on Debian. Does not happens with my Firefox ESR 45.3.0 on Debian.
Components: -Blink Blink>Layout

Comment 3 by e...@chromium.org, Sep 22 2016

Owner: szager@chromium.org
Status: Assigned (was: Unconfirmed)
Is this a dup of the other extra scrollbar bug Stefan?

Comment 4 by szager@chromium.org, Jan 17 2017

This looks like another example of a class of bugs related to overflow:auto containers inside a container that does multi-pass layout (flexbox or table).  I can't tell at first glance why exactly this example fails, I'll have to debug it further.

Comment 5 by e...@chromium.org, May 21 2018

Status: Fixed (was: Assigned)

Sign in to add a comment