Merge pull request #80 from solomax/patch-1

Fixes Issue #59
master
Mark Malek 2013-07-31 22:02:15 -07:00
commit eb36b15911
1 changed files with 1 additions and 1 deletions

View File

@ -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'
});