mirror of https://github.com/layui/layui
修复 table 只有分页栏或者统计栏时出现底部双边框问题
parent
ae767a2722
commit
38fb69bf5d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue