Skip to content

Commit

Permalink
Merge pull request rubynor#5 from craigtp/master
Browse files Browse the repository at this point in the history
Pull Request with a small bug fix to the table header sizing.
  • Loading branch information
oma committed Mar 11, 2013
2 parents ab8ec04 + 912b821 commit d39b1c6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions table-fixed-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ $.fn.fixedHeader = function (options) {

function processScroll() {
if (!o.is(':visible')) return;
if ($('thead.header-copy').size())
var i, scrollTop = $win.scrollTop();
if ($('thead.header-copy').size()) {
$('thead.header-copy').width($('thead.header').width());
var i, scrollTop = $win.scrollTop();
}
var t = $head.length && $head.offset().top - config.topOffset;
if (!isFixed && headTop != t) { headTop = t; }
if (scrollTop >= headTop && !isFixed) {
Expand Down

0 comments on commit d39b1c6

Please sign in to comment.