Skip to content

Constraining the datatable reported width? #670

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

You must be logged in to vote

I figured it out. The default table-layout is auto, which is allowed to overrun any containers. Changing table-layout to fixed solves the issue but still allows horizontal scrolling of the table.

      styles={{
        table: {
          tableLayout: "fixed",
        },

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JustinGrote
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