* fix for fixed tfoot.

This commit is contained in:
wangyidong
2016-03-10 10:25:59 +08:00
parent 0b99aaea7e
commit 019969ab90

View File

@@ -1390,7 +1390,8 @@ function fixedTfootAction(formID)
{
$hasFixed = $tfoot.hasClass('fixedTfootAction');
tableOffset = $table.offset().top + tableHeight - fixHeight;
if($(window).height() + $(window).scrollTop() > tableOffset)
offsetHeight = $(window).height() + $(window).scrollTop();
if(offsetHeight > tableOffset || $(document).height() == offsetHeight)
{
$tfoot.removeClass('fixedTfootAction');
$tfoot.removeAttr('style');