-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chrome v70 breaks horizontal scrolling (reproducible in adazzle demo grids) #1301
Comments
Interestingly, I am unable to replicate this when pulling from master, running |
Hi this also happening to my react data grid in chrome version 70 - your examples also do this. Do you have a fix for this ? |
The same on our side after Chrome 70 update =( |
Same issue after chrome 70 update |
@milesrichardson I pulled master, built the project and manually replaced |
Hey guys, the thing is that Row style uses an experimental css inline property import { Row } from 'react-data-grid'
import React from 'react'
class CustomRow extends Row {
render(...args) {
const superElement = Row.prototype.render.apply(this, args)
const style = {
height: this.getRowHeight(this.props),
overflow: 'hidden'
}
// clone the element returned by the superclass (Row)
// and override its style with one without `contain: 'layout'`
return React.cloneElement(superElement, { style })
}
}
export default class CustomRowRenderer extends React.Component {
setScrollLeft = (scrollBy) => {
this.row.setScrollLeft(scrollBy);
}
render() {
// using my custom row
return <CustomRow ref={node => this.row = node} {...this.props} />
}
} Usage: <ReactDataGrid rowRenderer={CustomRowRenderer} /> |
Nice find @yosbelms ! |
Good Job @yosbelms |
commenting out two occurences of 'contain: 'layout' in react-data-grid.js seems to do the trick and bring the horizontal scroll bar back Still testing, will post back after some scrutinization. Still doesnt resize properly when changing browser size though (issue 916) which is a far bigger problem! |
I have a similar issue using Google Chrome v70 (only the mac version). |
This seems to work:
none is the default value: https://developer.mozilla.org/en-US/docs/Web/CSS/contain |
Fixed in #1346 |
@yosbelms that fixed my problem! Got the horizontal scroll bar back. Brilliant! |
Which version of React JS are you using?
☣️ Not officially supported, expect warnings and errors ☣️
- [X] v16.x.x
Which browser are you using?
✅ Officially supported ✅
I'm submitting a ...
Issue Details
- What the current behavior is
In Chrome v69 and below, when there are more columns than possible to display on the screen, it is possible to scroll horizontally to see more columns.
- What the desired behavior is
Horizontal scrolling should work.
- (If Bug) Steps to reproduce the issue
Download Chrome v70 (released today, Oct 16) or use Chrome Canary v72, as the issue is present in both.
Load the demo page at http://adazzle.github.io/react-data-grid/#/examples/immutable-data-grouping
Try to scroll horizontally. It does not work.
The text was updated successfully, but these errors were encountered: