diff --git a/src/modules/table.js b/src/modules/table.js index 1c8e42f1..47223912 100644 --- a/src/modules/table.js +++ b/src/modules/table.js @@ -1675,7 +1675,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){ if(!height) return; //减去列头区域的高度 - bodyHeight = parseFloat(height) - (that.layHeader.outerHeight() || 38) - 1; //此处的数字常量是为了防止容器处在隐藏区域无法获得高度的问题,暂时只对默认尺寸的表格做支持。 + bodyHeight = parseFloat(height) - (that.layHeader.outerHeight() || 39) - 1; //此处的数字常量是为了防止容器处在隐藏区域无法获得高度的问题,暂时只对默认尺寸的表格做支持。 //减去工具栏的高度 if(options.toolbar){ @@ -1684,12 +1684,12 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){ //减去统计栏的高度 if(options.totalRow){ - bodyHeight -= (that.layTotal.outerHeight() || 40); + bodyHeight -= (that.layTotal.outerHeight() || 40) - 1; // 减掉一个共用的 border width } //减去分页栏的高度 if(options.page || options.pagebar){ - bodyHeight -= (that.layPage.outerHeight() || 43); + bodyHeight -= (that.layPage.outerHeight() || 43) - 1; } if (options.maxHeight) {