T
TanStack2y ago
harsh-harlequin

table column fixed size

Your example https://tanstack.com/table/v8/docs/examples/react/full-width-resizable-table I copy table from example above. First column I set fixed width 40px. But really width is more than 100px. why? How fix this?
React Table Full Width Resizable Table Example | TanStack Table Docs
An example showing how to implement Full Width Resizable Table in React Table
3 Replies
inland-turquoise
inland-turquoise16mo ago
Hi! Did you find a solution?
wise-white
wise-white16mo ago
you want to use table-layout: fixed.
inland-turquoise
inland-turquoise16mo ago
the problem is when the sum of setted columns widths is smaller than table width. Then all of columns are growing to fill all available space. and yes, i use table-layout: fixed,

Did you find this page helpful?