mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Fix stickyHeaders widget alignment within attachTo element
This commit is contained in:
parent
5d4955aef8
commit
f011b4cd6a
@ -1111,8 +1111,8 @@ ts.addWidget({
|
||||
spacing = parseInt($header.eq(0).css('border-left-width'), 10) * 2;
|
||||
}
|
||||
$stickyTable.css({
|
||||
left : $attach.length ? parseInt($attach.css('padding-left'), 10) +
|
||||
parseInt($attach.css('margin-left'), 10) + parseInt($table.css('border-left-width'), 10) :
|
||||
left : $attach.length ? (parseInt($attach.css('padding-left'), 10) || 0) + parseInt(c.$table.css('padding-left'), 10) +
|
||||
parseInt(c.$table.css('margin-left'), 10) + parseInt($table.css('border-left-width'), 10) :
|
||||
$thead.offset().left - $win.scrollLeft() - spacing,
|
||||
width: $table.width()
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user