From 2d34df644539f96fa12d6fb154c54876909b4812 Mon Sep 17 00:00:00 2001 From: Blood <33853639+9007967@users.noreply.github.com> Date: Fri, 21 Apr 2023 13:58:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=95=B0=E6=8D=AE=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E5=9C=A8=E4=B8=8D=E5=90=AF=E7=94=A8=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E5=BA=95=E8=BE=B9=E6=A1=86=E7=BC=BA?= =?UTF-8?q?=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/table.js b/src/modules/table.js index 39268a07..4d7df815 100644 --- a/src/modules/table.js +++ b/src/modules/table.js @@ -1668,7 +1668,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){ if(!height) return; //减去列头区域的高度 - bodyHeight = parseFloat(height) - (that.layHeader.outerHeight() || 38); //此处的数字常量是为了防止容器处在隐藏区域无法获得高度的问题,暂时只对默认尺寸的表格做支持。 + bodyHeight = parseFloat(height) - (that.layHeader.outerHeight() || 38) - 1; //此处的数字常量是为了防止容器处在隐藏区域无法获得高度的问题,暂时只对默认尺寸的表格做支持。 //减去工具栏的高度 if(options.toolbar){