From bbaf7b4baf1f647a6ebee1f881044139bee404a0 Mon Sep 17 00:00:00 2001 From: James Date: Sun, 29 Mar 2020 09:43:36 +0100 Subject: [PATCH] d --- heatcalc/heatcalc.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/heatcalc/heatcalc.js b/heatcalc/heatcalc.js index 437719c..c6ce045 100644 --- a/heatcalc/heatcalc.js +++ b/heatcalc/heatcalc.js @@ -92,6 +92,9 @@ define(["jquery"], function ($) { $("#button_container").css('position', 'absolute'); } + $('#heatcalc tbody th').css("left", $("#table_container").scrollLeft()); + $('#heatcalc thead th:nth-child(1)').css("left", $("#table_container").scrollLeft()); + /* buttonOffset = $('#button_container').offset().top; @@ -102,11 +105,9 @@ define(["jquery"], function ($) { }else{ $("#button_container").css('top', 0); $("#heatcalc thead th").css('top', 0); -} +}*/ + -$('#heatcalc tbody th').css("left", $("#table_container").scrollLeft()); -$('#heatcalc thead th:nth-child(1)').css("left", $("#table_container").scrollLeft()); -*/ } function draw_table(){