I'm developing HTML table (inside React application) with a whole range of sticky elements: header, footer, first column (I'm using position: sticky;
to make it works). Table is closed inside container with known dimensions, and allow user to scroll in X and Y directions (see my JSFiddle https://jsfiddle.net/aypLr936/ - it's only the mock up). Currently I'm trying to 'migrate' with scrolling area (X and Y) inside tbody (something like https://datatables.net/examples/basic_init/scroll_xy.html). I've tried to implement solutions from HTML table with 100% width, with vertical scroll inside tbody but it doesn't work in my conditions. I'm just wondering if it possible to make it works without breaking existing functionality (table has also an option to resize columns, which must work after changes, resizable columns must overflow parent container [not resize sibling columns]).
One other approach I tried is to separate table into 3: one for thead, one for tbody, one for tfoot. But in this case there is an issue with horizontal scroll (thead and tfoot don't follow tbody position). Maybe is there any way to create linkage between different table scroll position?
I will be very grateful for all tips, suggestions, cheers J.