Index: misc/tableheader.js =================================================================== RCS file: /cvs/drupal/drupal/misc/tableheader.js,v retrieving revision 1.3 diff -u -p -r1.3 tableheader.js --- misc/tableheader.js 1 Jun 2007 09:05:45 -0000 1.3 +++ misc/tableheader.js 4 Jun 2007 19:23:11 -0000 @@ -11,7 +11,7 @@ if (Drupal.jsEnabled) { $('table thead').each(function () { // Find table height. var table = $(this).parent('table')[0]; - var height = $(table).addClass('sticky-table').height(); + var height = parseInt($(table).addClass('sticky-table').css('height')); var i = 0; // Find all header cells. @@ -45,7 +45,7 @@ if (Drupal.jsEnabled) { ref = table; div.wide = true; } - $(div).css('width', parseInt($(ref).width()) + $(div).css('width', parseInt($(ref).css('width')) - parseInt($(div).css('paddingLeft')) +'px'); // Get position and store. @@ -85,7 +85,7 @@ if (Drupal.jsEnabled) { // Precalculate table heights $('table.sticky-table').each(function () { - this.height = $(this).height(); + this.height = parseInt($(this).css('height')); }); $(cells).each(function () { @@ -99,7 +99,7 @@ if (Drupal.jsEnabled) { // Resize the first cell to fit the table. ref = this.table; } - $(this).css('width', parseInt($(ref).width()) + $(this).css('width', parseInt($(ref).css('width')) - parseInt($(this).css('paddingLeft')) +'px'); });