This commit is contained in:
tianshujie
2022-03-31 09:28:28 +08:00
parent 7d4897aa8f
commit 16df973236
2 changed files with 21 additions and 1 deletions
+1 -1
View File
@@ -38,6 +38,6 @@ function adjustTableFooter()
{
$('.table.with-footer-fixed').css('margin-bottom', '0');
$('.table-footer').removeClass('fixed-footer');
$('.table-footer').css({"left":"0", "bottom":"0", "width":"unset"});
$('.table-footer').css({'left': 0, 'bottom': 0, 'width': 'unset'});
}
}
+20
View File
@@ -0,0 +1,20 @@
$(function()
{
adjustTableFooter();
});
/**
* Adjust the table footer style.
*
* @access public
* @return void
*/
function adjustTableFooter()
{
if($('#mainContent').height() < $(window).height())
{
$('.table').removeClass('with-footer-fixed');
$('.table-footer').removeClass('fixed-footer');
$('.table-footer').css({'left': 0, 'bottom': 0, 'width': 'unset'});
}
}