From ca4d8c60c7001bb1c2b6907945c40c7cde038fb3 Mon Sep 17 00:00:00 2001 From: Maxim Solodovnik Date: Fri, 12 Jul 2013 16:51:52 +0700 Subject: [PATCH] Fixes Issue #59 This patch fixes Issue #59 for me. Could you please review it? --- jquery.fixedheadertable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.fixedheadertable.js b/jquery.fixedheadertable.js index a9f3fa1..ba61dea 100644 --- a/jquery.fixedheadertable.js +++ b/jquery.fixedheadertable.js @@ -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' });