komarovalexander / ka-table

Lightweight MIT React Table component with Sorting, Filtering, Grouping, Virtualization, Editing and many more
http://ka-table.com
MIT License
769 stars 56 forks source link

Resize column action ignores min-width on Firefox #370

Closed krukrue closed 8 months ago

krukrue commented 8 months ago

Hi, as was said in title, Firefox(+Safari) just ingores minimal width after resizing, we have option to hide it and set any size you want. My solution: make sure if new column width isn't more than minimal value a set minimal if it is (ActionType.ResizeColumn)

komarovalexander commented 8 months ago

Hi @krukrue can you give an example? I tried to reproduce that https://stackblitz.com/edit/table-column-resizing-ts-remrxe?file=Demo.tsx but it works in both Firefox and Safari

komarovalexander commented 8 months ago

I got that. colGroup minWidth does not work on firefox and safari. But you can set style for separate cell to make it work as I did in example https://stackblitz.com/edit/table-column-resizing-ts-remrxe?file=Demo.tsx or as you said ResizeColumn is also a solution