Skip to content

Commit

Permalink
Merge pull request markmalek#80 from solomax/patch-1
Browse files Browse the repository at this point in the history
Fixes Issue markmalek#59
  • Loading branch information
markmalek committed Aug 1, 2013
2 parents 60b8058 + ca4d8c6 commit eb36b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.fixedheadertable.js
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@
* to align with the scrollbar of the body
*/
if (!$(this).closest('.fht-tbody').length && $(this).is(':last-child') && !$(this).closest('.fht-fixed-column').length) {
var padding = (($(this).innerWidth() - $(this).width()) / 2) + settings.scrollbarOffset;
var padding = Math.max((($(this).innerWidth() - $(this).width()) / 2), settings.scrollbarOffset);
$(this).css({
'padding-right': padding + 'px'
});
Expand Down

0 comments on commit eb36b15

Please sign in to comment.