react-data-grid icon indicating copy to clipboard operation
react-data-grid copied to clipboard

Horizontal scrolling not working in Chrome

Open mcix opened this issue 8 years ago • 4 comments


Which version of React JS are you using?

✅ Officially supported ✅

  • [x] v15.4.x

⚠️ Not officially supported, expect warnings ⚠️

  • [ ] v15.5.x
  • [ ] v15.6.x

☣️ Not officially supported, expect warnings and errors ☣️

  • [x] v16.x.x

Which browser are you using?

✅ Officially supported ✅

  • [x] IE 9 / IE 10 / IE 11
  • [x] Edge
  • [x] Chrome

⚠️ Not officially supported, but "should work" ⚠️

  • [ ] Firefox
  • [x] Safari

I'm submitting a ...

  • [x] 🐛 Bug Report
  • [ ] 💡 Feature Request

👋 Need general support? Not sure about how to use React itself, or how to get started with the Grid? Please do not submit support request here. Instead see

https://github.com/adazzle/react-data-grid/blob/master/CONTRIBUTING.md


Issue Details

Horizontal scrolling is working in IE, Edge and Safari, but not in Chrome.
Would be nice if horizontal scrolling is working in Chrome also.
The example on https://adazzle.github.io/react-data-grid/#/examples/all-features does allow horizontal scrolling in Chrome, so I compared elements to see where the issue might be.

I have narrowed it doen to the following:
If I disable the "contain: layout" style in the react-grid-Row div, horizontal scrolling is working in Chrome!

Since I am new to this project I don't know what this contain style is used for and what implications this would have. If there is something I can do to check what depends on this style, I am keen to do this.

Here is a screen grab of the behaviour:

Screengrab

Edit: I just tested this using React 15.4, I see the same behaviour there

mcix avatar Nov 06 '18 11:11 mcix

Sorry, I tested this using version 4.0.8, I no longer see this behaviour in 5.0.4-2 🙄

mcix avatar Nov 06 '18 11:11 mcix

For me, 5.0.4-2 doesn't frozen the cells. The header works like intented but content cells scroll with scrollbar, which is not what they did before update.

edit: I was using rowRenderer and somehow the markup has changed on this. Looking in to it myself.

terolepisto avatar Nov 12 '18 14:11 terolepisto

In v5 we introduced a renderBaseRow prop , please take a look at the CustomRowRenderer example https://github.com/adazzle/react-data-grid/blob/master/packages/react-data-grid-examples/src/scripts/example12-customRowRenderer.js#L27

amanmahajan7 avatar Nov 13 '18 13:11 amanmahajan7

Completely froze on us. This was a pretty significant user impact without warning. I would suggest that this isn' defaulted. It's new and cool, but not mainstream use case to scroll only a row in 1,000 row list. Thanks for the quick reply Aman!

JamesFast avatar Nov 16 '18 00:11 JamesFast