revert pull request #433

This commit is contained in:
Mottie 2013-11-24 10:23:03 -06:00
parent f00ae6a705
commit 276e3731f0

View File

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