Skip to content

Horizontal scroll bar missing when toggle full screen activated #1373

Answered by annshome2
annshome2 asked this question in Q&A
Discussion options

You must be logged in to vote

I found a workaround. The issue was caused by the TableContainer not taking into account the scrollbar in the max-height. I resolved this by adding a styling property that set the max-height to what I needed.

 const table = useMaterialReactTable({
        .
        .
        .
    muiTableContainerProps: {      
      style:{
        maxHeight: 'calc(-150px + 100vh)' // secret sauce that makes the x scrollbar visible on toggle full screen
      }    
    },

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by annshome2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant