You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some problems with sizing my columns, and I cant seem to figure out how maxWidth, minWidth etc work, they seemingly do nothing.
However I was hoping to fix it without them.
This is my column definition:
{
header: 'Name',
accessorKey: 'name',
cell: (value) => (
looooooooooooooooooooooong name
),
enableSorting: false
},
NameCountryCell has a maxWidth of 150px, and allows words to break. But even if my actual content is only 150px wide, the column created is massive. And it makes the entire table overflow, so its taking up space even when there isnt any available
My guess is that the column size is determined at some point where it determines the max width needed, instead of the actual size the content ends up being.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have some problems with sizing my columns, and I cant seem to figure out how maxWidth, minWidth etc work, they seemingly do nothing.
However I was hoping to fix it without them.
This is my column definition:
{
header: 'Name',
accessorKey: 'name',
cell: (value) => (
looooooooooooooooooooooong name
),
enableSorting: false
},
NameCountryCell has a maxWidth of 150px, and allows words to break. But even if my actual content is only 150px wide, the column created is massive. And it makes the entire table overflow, so its taking up space even when there isnt any available
My guess is that the column size is determined at some point where it determines the max width needed, instead of the actual size the content ends up being.
Im using V8 if that matters.
Beta Was this translation helpful? Give feedback.
All reactions