Fixes Issue #59

This patch fixes Issue #59 for me. Could you please review it?
master
Maxim Solodovnik 2013-07-12 16:51:52 +07:00
parent 60b80586e6
commit ca4d8c60c7
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'
});