FIXED ISSUE #107 Scrollbar offset is incorrect if padding-right is already exists

master
hiddes 2014-02-27 15:23:41 +07:00
parent e7aa5be530
commit 1d1ff6e2bf
2 changed files with 3 additions and 2 deletions

View File

@ -609,7 +609,7 @@
if (!$(this).closest('.fht-tbody').length && $(this).is(':last-child') && !$(this).closest('.fht-fixed-column').length) {
var padding = Math.max((($(this).innerWidth() - $(this).width()) / 2), settings.scrollbarOffset);
$(this).css({
'padding-right': padding + 'px'
'padding-right': parseInt($(this).css('padding-right')) + padding + 'px'
});
}
});

File diff suppressed because one or more lines are too long