From 019969ab90217505cfda0ec8f2cd2ed085926872 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Thu, 10 Mar 2016 10:25:59 +0800 Subject: [PATCH] * fix for fixed tfoot. --- www/js/my.full.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/js/my.full.js b/www/js/my.full.js index 30d11b901d..d57c8718e6 100644 --- a/www/js/my.full.js +++ b/www/js/my.full.js @@ -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');