pupudu / window-table

Windowing Table for React based on React Window
https://window-table.netlify.com/
170 stars 13 forks source link

Width not adjusted until screen size is changed #64

Open andrew-mclachlan opened 4 years ago

andrew-mclachlan commented 4 years ago

Great wee library! Thank you!

I have a question/issue.

I am starting off with an empty table that gets populated. What I find is that the first time we add data, the width is the full size of the screen (there are divs to the right). When I adjust the screen size, then we correctly fit the table into the div.

Am I doing something incorrect to cause the width to be "wrong" first time or am I able to programmatically trigger a measure after I have added data?

pupudu commented 4 years ago

Hi @andrew-mclachlan Thank you for the kind words.

Sorry to hear you're facing an issue. I can have a look if you could produce a minimal example in a codesandbox.

Or else, please consider React Fluid Table as a replacement to this library. It has a similar API and has a ton more features.