Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…leHeaders into florianherrengt-master
  • Loading branch information
jmosbech committed Mar 5, 2015
2 parents e1c5d2d + 5e0dc0f commit 6744cfe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/jquery.stickytableheaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,15 @@
base.isSticky = true;
// make sure the width is correct: the user might have resized the browser while in static mode
base.updateWidth();
$(this).trigger('StickyTableHeaders:belowFixedOffset');
}
base.setPositionValues();
} else if (base.isSticky) {
base.$originalHeader.css('position', 'static');
base.$clonedHeader.css('display', 'none');
base.isSticky = false;
base.resetWidth($('td,th', base.$clonedHeader), $('td,th', base.$originalHeader));
$(this).trigger('StickyTableHeaders:aboveFixedOffset');
}
});
}
Expand Down

0 comments on commit 6744cfe

Please sign in to comment.