diff --git a/misc/tableheader.js b/misc/tableheader.js index 47201b2..f4d053b 100644 --- a/misc/tableheader.js +++ b/misc/tableheader.js @@ -112,7 +112,7 @@ Drupal.tableHeader.prototype.eventhandlerRecalculateStickyHeader = function (eve // displaying incorrectly when the sticky header is no longer visible. for (var i = 0, il = this.originalHeaderCells.length; i < il; i += 1) { $that = $(this.originalHeaderCells[i]); - $stickyCell = this.stickyHeaderCells.eq($that.index()); + $stickyCell = this.stickyHeaderCells.eq(i); display = $that.css('display'); if (display !== 'none') { cellWidth = $that.css('width');