react-table-hoc-fixed-columns icon indicating copy to clipboard operation
react-table-hoc-fixed-columns copied to clipboard

Are there props for min/max width?

Open pstephenwille opened this issue 6 years ago • 3 comments

Testing the demo, and stepping through the code, it doesn't look like there is any way to constrain the width. Is that right, or did I miss something?

pstephenwille avatar Feb 15 '19 21:02 pstephenwille

Specifically, I'm looking to set the max-width on the columns but I'm not seeing any way to do that.

pstephenwille avatar Feb 15 '19 21:02 pstephenwille

Hi, It’s seems the same issue that #27 .

Min width and max width are currently hard to use because fixed columns use the internal column width to determinate the offset of left or right fixed columns.

I will investigate and find a better way to calculate offset.

Until that will be fix, you should use width instead of min width or max width

GuillaumeJasmin avatar Feb 19 '19 23:02 GuillaumeJasmin

I use width in the React Table and Wrappe with withFixedColumnsStickyPosition work's fine, you can work the max width un React Table

dyangua avatar Dec 12 '19 20:12 dyangua