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 looked at the column sizing example and implemented the same. When the minimum width of the <Table /> is set to 100%, column resizing behaves differently. It tries to resize the column within the hundred per cent screen space by adjusting the content of the rest of the column.
table.getTotalSize() sets the table width to the sum of the size of each column. It would not cover the available screen space. I can use window.innerWidth to provide a default size to each column so that they could fill the room but it would not play nice if there is a side panel which occupies 20% of the screen space on the left. I would have to determine the width of an element acting as a table wrapper and then distribute the width across the column to fill the available space based on the width of the wrapper.
Is there an elegant solution to assign an initial width (available space) to the table.getTotalSize()?
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.
-
I have looked at the column sizing example and implemented the same. When the minimum width of the
<Table />
is set to 100%, column resizing behaves differently. It tries to resize the column within the hundred per cent screen space by adjusting the content of the rest of the column.table.getTotalSize()
sets the table width to the sum of the size of each column. It would not cover the available screen space. I can usewindow.innerWidth
to provide a default size to each column so that they could fill the room but it would not play nice if there is a side panel which occupies 20% of the screen space on the left. I would have to determine the width of an element acting as a table wrapper and then distribute the width across the column to fill the available space based on the width of the wrapper.Is there an elegant solution to assign an initial width (available space) to the
table.getTotalSize()
?Beta Was this translation helpful? Give feedback.
All reactions