T
TanStack•3y ago
unwilling-turquoise

Resizeable columns jump to maximum available width

I have this issue that can be seen on the video. I wonder if there is a way to make the table and columns keep their original uncontrolled widths when toggling the resizeability. I would want to have the table keep its initial design (which is solely determined by a hard-coded table width) when resizeability of columns is enabled. Does anyone have a good idea as to how I should go about this? Thanks!
1 Reply
unwilling-turquoise
unwilling-turquoiseOP•3y ago
The table will calculate width like so:
<sc.StyledTable
{...(isColumnResizeable
? {
style: {
width: table.getCenterTotalSize(),
},
}
: {})}
>
...
<sc.StyledTable
{...(isColumnResizeable
? {
style: {
width: table.getCenterTotalSize(),
},
}
: {})}
>
...
nvm, figured it out 🙂

Did you find this page helpful?