I'm trying to combine two demos from material-ui documentation.
- Clipped under the app bar - This is the page layout
- Fixed header - This is a table with a fixed header.
I want the table to take all the available page height, but still have a fixed header.
The problem is that the "fixed-header" table on the right side, doesn't stick its header, there's a page scrollbar and the header scrolls up with the page. unless I'm adding a maxHeight
to the table (Similar to the original "Fixed header" demo). BUT, with maxHeight
I can't fit the table to the full page height...
Here's a CodeSandbox demonstrating the problem.