Anonymous

MediaWiki:Common.js: Difference between revisions

From Melvor Idle
Adjust for Chrome/Firefox issue where missing border leaves a thin, transparent line for multi-row headers
(Fix setStickyHeaderTop)
(Adjust for Chrome/Firefox issue where missing border leaves a thin, transparent line for multi-row headers)
Line 540: Line 540:
       if (secondRow.length > 0) {
       if (secondRow.length > 0) {
         const secondHeaders = secondRow[0].getElementsByTagName('th');
         const secondHeaders = secondRow[0].getElementsByTagName('th');
         var secondHeight = headHeight + firstHeight;
         var secondHeight = headHeight + firstHeight - 1;
         for (var j = 0; j < secondHeaders.length; j++) {
         for (var j = 0; j < secondHeaders.length; j++) {
           secondHeaders[j].style.top = secondHeight + 'px';
           secondHeaders[j].style.top = secondHeight + 'px';