tablesorter icon indicating copy to clipboard operation
tablesorter copied to clipboard

[email protected]: xScroll for header

Open motasus opened this issue 5 years ago • 2 comments

When stickyHeaders_xScroll is set, table header is not scrolling with table.

Perhaps changing https://github.com/Mottie/tablesorter/blob/v2.31.3/js/widgets/widget-stickyHeaders.js#L157 to something like:

return wo.stickyHeaders_xScroll
  ? -$xScroll.scrollLeft()
  : $attach.length
    ? parseInt($attach.css("padding-left"), 10) || 0
    : $table.offset().left -
      parseInt($table.css("margin-left"), 10) -
      $(window).scrollLeft();

motasus avatar Aug 11 '20 15:08 motasus

Hi @motasus!

Would you show me a demo of this problem? It would make it easier for me to examine the problem. I'd appreciate it! Thanks!

Mottie avatar Aug 13 '20 11:08 Mottie

here's plunker https://plnkr.co/edit/0Xm0dmsrUqw01iqb?open=lib%2Fscript.js&preview

there is extra floatingScroll plugin (not affecting the problem)

motasus avatar Aug 14 '20 17:08 motasus