From 38bf01829e39669257ddab3e096a2ec7e9ed0c3b Mon Sep 17 00:00:00 2001 From: James Date: Sun, 29 Mar 2020 10:38:03 +0100 Subject: [PATCH] c --- heatcalc/heatcalc.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/heatcalc/heatcalc.js b/heatcalc/heatcalc.js index 5d7d2da..aae93f5 100644 --- a/heatcalc/heatcalc.js +++ b/heatcalc/heatcalc.js @@ -64,10 +64,12 @@ define(["jquery"], function ($) { function check_scroll(){ // - $("#hc_table thead.table").find('tr').first().children().each(function(i, e){ - $($("#hc_table thead.fixed").find('tr').children()[i]).width($(e).width()); + $("#hc_table thead.table").find('tr')[0].children().each(function(i, e){ + $($("#hc_table thead.fixed").find('tr')[0].children()[i]).css('display','block').width($(e).width()); + }); + $("#hc_table thead.table").find('tr')[1].children().each(function(i, e){ + $($("#hc_table thead.fixed").find('tr')[1].children()[i]).css('display','block').width($(e).width()); }); - // make sure the left/right buttons are hidden if already at far left/right var sl=$("#table_container").scrollLeft();