diff --git a/core/misc/tableheader.es6.js b/core/misc/tableheader.es6.js index a5aa6635d3..c7ddb65ba8 100644 --- a/core/misc/tableheader.es6.js +++ b/core/misc/tableheader.es6.js @@ -202,6 +202,11 @@ position: 'fixed', top: '0px', }) + // Copy classes from originalTable, remove undesired classes, and add + // sticky-header. Any other classes added to originalTable by modules + // will exists in stickyTable to ensure consistent styling. + .addClass(this.$originalTable.attr('class')) + .removeClass('sticky-enabled tableheader-processed sticky-table') .append($stickyHeader) .insertBefore(this.$originalTable); diff --git a/core/misc/tableheader.js b/core/misc/tableheader.js index bce54ec7d4..cb500e64fb 100644 --- a/core/misc/tableheader.js +++ b/core/misc/tableheader.js @@ -102,7 +102,7 @@ visibility: 'hidden', position: 'fixed', top: '0px' - }).append($stickyHeader).insertBefore(this.$originalTable); + }).addClass(this.$originalTable.attr('class')).removeClass('sticky-enabled tableheader-processed sticky-table').append($stickyHeader).insertBefore(this.$originalTable); this.$stickyHeaderCells = $stickyHeader.find('> tr > th');