FIXED ISSUE #107 Scrollbar offset is incorrect if padding-right is already exists
parent
e7aa5be530
commit
1d1ff6e2bf
|
@ -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
Loading…
Reference in New Issue