Merge branch 'master' of github.com:Mottie/tablesorter

This commit is contained in:
Mottie 2013-11-24 09:49:32 -06:00
commit f00ae6a705

View File

@ -1,4 +1,4 @@
/*! tableSorter 2.8+ widgets - updated 11/22/2013 (v2.14.1) /*! tableSorter 2.8+ widgets - updated 11/24/2013 (v2.14.2)
* *
* Column Styles * Column Styles
* Column Filters * Column Filters
@ -1085,6 +1085,7 @@ ts.addWidget({
spacing = 0, spacing = 0,
updatingStickyFilters = false, updatingStickyFilters = false,
nonwkie = $table.css('border-collapse') !== 'collapse' && !/(webkit|msie)/i.test(navigator.userAgent), nonwkie = $table.css('border-collapse') !== 'collapse' && !/(webkit|msie)/i.test(navigator.userAgent),
isWebkit = !/(webkit|msie)/i.test(navigator.userAgent),
resizeHeader = function() { resizeHeader = function() {
stickyOffset = $stickyOffset.length ? $stickyOffset.height() || 0 : parseInt(wo.stickyHeaders_offset, 10) || 0; stickyOffset = $stickyOffset.length ? $stickyOffset.height() || 0 : parseInt(wo.stickyHeaders_offset, 10) || 0;
spacing = 0; spacing = 0;
@ -1096,7 +1097,7 @@ ts.addWidget({
spacing = parseInt($header.eq(0).css('border-left-width'), 10) * 2; spacing = parseInt($header.eq(0).css('border-left-width'), 10) * 2;
} }
$stickyTable.css({ $stickyTable.css({
left : $thead.offset().left - $win.scrollLeft() - spacing, left : $thead.offset().left - $win.scrollLeft() - spacing - (isWebkit ? 1 : 0),
width: $table.width() width: $table.width()
}); });
$stickyCells.filter(':visible').each(function(i) { $stickyCells.filter(':visible').each(function(i) {
@ -1179,7 +1180,7 @@ ts.addWidget({
.addClass(prefix + isVisible) .addClass(prefix + isVisible)
.css({ .css({
// adjust when scrolling horizontally - fixes issue #143 // adjust when scrolling horizontally - fixes issue #143
left : $thead.offset().left - $win.scrollLeft() - spacing, left : $thead.offset().left - $win.scrollLeft() - spacing - (isWebkit ? 1 : 0),
visibility : isVisible visibility : isVisible
}); });
if (isVisible !== laststate || event.type === 'resize') { if (isVisible !== laststate || event.type === 'resize') {