Skip to content

Commit 1d1ff6e

Browse files
author
hiddes
committedFeb 27, 2014
FIXED ISSUE markmalek#107 Scrollbar offset is incorrect if padding-right is already exists
1 parent e7aa5be commit 1d1ff6e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎jquery.fixedheadertable.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@
609609
if (!$(this).closest('.fht-tbody').length && $(this).is(':last-child') && !$(this).closest('.fht-fixed-column').length) {
610610
var padding = Math.max((($(this).innerWidth() - $(this).width()) / 2), settings.scrollbarOffset);
611611
$(this).css({
612-
'padding-right': padding + 'px'
612+
'padding-right': parseInt($(this).css('padding-right')) + padding + 'px'
613613
});
614614
}
615615
});

‎jquery.fixedheadertable.min.js

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.