Skip to content

Commit

Permalink
Merge pull request #196 from mkurek/fix/fixed-header-scroll
Browse files Browse the repository at this point in the history
fixed fixed header scroll
  • Loading branch information
kula1922 committed Jul 8, 2014
2 parents 02c6840 + 7c1bc63 commit fac2174
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ralph_pricing/media/scrooge/js/table_fixed_header.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ Fixed table header on scroll

function resizeFixedHeader() {
// set fixed header table width to properly display cell width
$headerFixed.css("width", $table.outerWidth() + "px");
$headerFixed.css("min-width", $table.outerWidth() + "px");
// set width for each header cell
$headerFixed.find("th").each(function(index) {
$(this).css("width", $table.find("th").eq(index).outerWidth() + "px");
$(this).css("min-width", $table.find("th").eq(index).outerWidth() + "px");
});

scrollHandler();
Expand Down

0 comments on commit fac2174

Please sign in to comment.