Skip to content
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

Mui table how to set horizontal scroll? #1838

Closed
ghost opened this issue Oct 8, 2015 · 4 comments
Closed

Mui table how to set horizontal scroll? #1838

ghost opened this issue Oct 8, 2015 · 4 comments
Labels
new feature New feature or request

Comments

@ghost
Copy link

ghost commented Oct 8, 2015

the table.js
bodyTable: {
height: this.props.fixedHeader || this.props.fixedFooter ? this.props.height : 'auto',
overflowX: 'hidden',
overflowY: 'auto'
},
How can we change overflowX ?

@ghost
Copy link
Author

ghost commented Oct 8, 2015

May be It does support change the table overflowX.

@ghost
Copy link
Author

ghost commented Oct 8, 2015

now workaround way:
componentDidMount() {
$('.mui-body-table').css('overflow-x', 'auto');
}

@elie222
Copy link

elie222 commented Dec 10, 2015

It doesn't look like there's a way to override it in the code:
https://github.com/callemall/material-ui/blob/master/src/table/table.jsx#L90

But I'll try your workaround. Thanks

@alitaheri alitaheri added the new feature New feature or request label Dec 10, 2015
@almoraleslopez
Copy link

I got it by passing to Table component via props:

bodyStyle: { overflowX: undefined, overflowY: undefined }

But it disable the fixedHeader :(

mnajdova pushed a commit to mnajdova/material-ui that referenced this issue Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants