react-base-table icon indicating copy to clipboard operation
react-base-table copied to clipboard

Is is possible to set width to maxContent?

Open ElixirMike opened this issue 2 years ago • 1 comments

When rendering the table, I'd like the table width to match whatever the max content of the table contents is. is this possible? Currently it seems using Autosizer, I need to set an actual number to the width attribute, but ultimately, like a div, I'd like to set it to "maxContent" or an equivalent.

Appreciate if you let me know how I might do that.

ElixirMike avatar Nov 11 '22 15:11 ElixirMike

I did this with element-resize-detector and a div container.

FrominXu avatar Mar 07 '23 09:03 FrominXu