parent
60b80586e6
commit
ca4d8c60c7
|
@ -611,7 +611,7 @@
|
||||||
* to align with the scrollbar of the body
|
* to align with the scrollbar of the body
|
||||||
*/
|
*/
|
||||||
if (!$(this).closest('.fht-tbody').length && $(this).is(':last-child') && !$(this).closest('.fht-fixed-column').length) {
|
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({
|
$(this).css({
|
||||||
'padding-right': padding + 'px'
|
'padding-right': padding + 'px'
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue