pupudu/window-table

Width not adjusted until screen size is changed

andrew-mclachlan opened this issue · 1 comments

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?

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.