I have tried to set each widthPercent on each TableHeader to add up to 100%, but the scroll bar is still there.
I can set static widths per column, but I end up with extra space on the right depending on the size of the window.
How do I make the table always use the full width available to it, but also always wrap text so the table does not need horizontal scroll?
I solved it:
MuiTable css override: tableLayout: "fixed"
MuiTableCell css override: overflow: "hidden", textOverflow: "ellipsis"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.