React-window: If scrollbars are visible by default in OS horizontal scrollbar appears in vertical FixedSizeList

Created on 23 Jul 2018  Â·  8Comments  Â·  Source: bvaughn/react-window

If scrollbars are visible by default in OS horizontal scrollbar appears in vertical FixedSizeList at least in Chrome browser

image

How to reproduce
Set show scrollbars always
image

open
https://react-window.now.sh/#/examples/list/fixed-size

scroll a little bit down and you will see a horizontal scrollbar (scroll overflow is on scrollbar width)

Most helpful comment

The fix will go out with 1.0.3

All 8 comments

Adding width=100% to inner viewport partially solves the issue

image

But just width:100% doesnt help if inner row has big uwrapable content like
here https://codesandbox.io/s/k56mm6301o (scrollbar appears again)

Adding position: "relative", on inner viewport solves an issue
https://codesandbox.io/s/vm5oow6j7l

But just width:100% doesnt help if inner row has big uwrapable content like
here https://codesandbox.io/s/k56mm6301o (scrollbar appears again)

I think the horizontal scrollbar _should_ appear in this case.

Do you mean non-mac users should work with ugly ui?

Come on man, don't put ridiculous words in my mouth.

@istarkov said that in the second case– if a row contained content that was too wide to fit within 100%, horizontal scrollbars would still appear. I said this _should_ happen, because I know of some cases where people _intentionally_ want a vertically windowed list to scroll horizontally.

Edit I'm going to try the same fix I used for RV locally. Give me a bit. I just forgot this case.

The fix will go out with 1.0.3

Fix has been deployed. You can verify it on the website.

Thanks, Brian!

No problem 😄 Thanks @istarkov for pointing out the oversight!

Was this page helpful?
0 / 5 - 0 ratings