React-virtualized: Horizontal scrolling doesn't work in ReactVirtualized List

Created on 18 Oct 2018  路  4Comments  路  Source: bvaughn/react-virtualized

Hi,

We're implementing a tree using ReactVirtualized List. With each level of indent in the tree, the length of each line in the list gets longer, ultimately requiring a horizontal scroll.

We made the horizontal scrolling work by adding highly specific CSS rules which force overflow: auto on the outer div (classNames= "ReactVirtualized__Grid ReactVirtualized__List"), and by forcing overflow: visible on the inner div (classNames="ReactVirtualized__Grid__innerScrollContainer")

1) Are there any mine fields here we're not seeing?
2) Please feel free to use this approach in any new feature you might add.

Thanks,

Ben Dubrovsky

Most helpful comment

as a workaround i redefine styles
.ReactVirtualized__Grid__innerScrollContainer { overflow: initial !important; }

All 4 comments

Looking forward for this feature.
Need to have horizontal scrolling for zoom in/out content inside the list.

We are also needing this in a internal tool. How can I help?

as a workaround i redefine styles
.ReactVirtualized__Grid__innerScrollContainer { overflow: initial !important; }

as a workaround i redefine styles
.ReactVirtualized__Grid__innerScrollContainer { overflow: initial !important; }

Great, but overflow: initial does not work in IE11

Was this page helpful?
0 / 5 - 0 ratings