gregnb / gregnb/mui-datatables

Forcing Table to Respect Parent Container Height

Open
#699 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
2.7k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

I am trying to create a table inside a CSS Grid but it wont respect its parent grid item container. (I have had the same problem if I try to put the table inside a fixed height div). I have been setting the maxHeight of the responsiveScroll element to 'none' as suggested in other issues here, and still no luck. Is there any way to accomplish this?

Ideally I'd have the table's header/footer contained within its parent container, and the rows scroll.

Here's a codesandbox showing the issue and what I've tried:
https://codesandbox.io/s/small-microservice-ukc51?fontsize=14

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.