From 34a26b3ce987333562ad08bfa671b334d291dd9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= <gabor@hojtsy.hu> Date: Wed, 12 Sep 2007 11:45:03 +0000 Subject: [PATCH] #172782 by ChrisKennedy: fix IE 7 JS alerts by not trying to reuse the height variable --- misc/tableheader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/tableheader.js b/misc/tableheader.js index 87e98c42bdc2..53706987ee03 100644 --- a/misc/tableheader.js +++ b/misc/tableheader.js @@ -86,13 +86,13 @@ Drupal.behaviors.tableHeader = function (context) { // Precalculate table heights $('table.sticky-table').each(function () { - this.height = $(this).height(); + this.savedHeight = $(this).height(); }); $(cells).each(function () { // Get position. this.stickyPosition = Drupal.absolutePosition(this.cell).y; - this.stickyMax = this.table.height; + this.stickyMax = this.table.savedHeight; // Reflow the cell. var ref = this.cell; -- GitLab