diff --git a/heatcalc/heatcalc.js b/heatcalc/heatcalc.js index 82a8159..d021260 100644 --- a/heatcalc/heatcalc.js +++ b/heatcalc/heatcalc.js @@ -188,7 +188,12 @@ function draw_table(){ // display the table $("#table_container").append(table); - $("#hc_table thead").clone().css('position','fixed').prependTo("#hc_table"); + //clon the thead + var org_thead=$("#hc_table thead"); + org_thead.clone().attr('id','floater').css('position','fixed').prependTo("#hc_table"); + org_thead.find('tr').first().children().each(function(i, e){ + $($("#hc_table thead#floater").find('tr').children()[i]).width($(e).width()); + }); //enable highlighting $("#hc_table td").on("mouseover", function() {