gregnb / gregnb/mui-datatables

Fill parent container by height and width

Open
#1,099 0 comments 1 reaction 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
2.7k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

The width is fine but the height is problematic. I tried various settings including `scrollFullHeight` and `scrollMaxHeight` with `maxHeight` overrides of "none" or "100%". None of them were able to properly expand the table to parent container's height.

Linked below is a live sample. As a test, I set the height to 500px but I won't know what height the parent container will be in my implementation. What should I change so the table fills the parent container?

https://codesandbox.io/s/currying-bush-kcl1g

Thanks for MUI-datatables! ❤️

| Tech | Version |
|--------------|---------|
| Material-UI | 4.7.1 |
| MUI-datatables | 2.13.1 |
| React | 16.12.0 |
| browser | Chrome x64 |
| etc | Windows x64 |

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.