From 8b0453b0c0e4a381d8beff36ad70f07c36a6d62e Mon Sep 17 00:00:00 2001 From: thinkgem Date: Sat, 25 Mar 2023 11:43:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/main/resources/static/layer/3.5/layer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/resources/static/layer/3.5/layer.js b/common/src/main/resources/static/layer/3.5/layer.js index 262e8986..915977f9 100644 --- a/common/src/main/resources/static/layer/3.5/layer.js +++ b/common/src/main/resources/static/layer/3.5/layer.js @@ -868,7 +868,7 @@ layer.iframeAuto = function(index, diffVal, $this){ var layero = $('#'+ doms[0] + index); var titHeight = layero.find(doms[1]).outerHeight() || 0; var btnHeight = layero.find('.'+doms[6]).outerHeight() || 0; - // var heg = layer.getChildFrame('html', index).outerHeight(); + //var heg = layer.getChildFrame('html', index).outerHeight(); var heg = iframeWin.document.body.scrollHeight; var layerHeight = heg + titHeight + btnHeight; var layerTop = ($(window).height() - layerHeight) / 2; @@ -876,7 +876,7 @@ layer.iframeAuto = function(index, diffVal, $this){ var $iframe = layero.find('iframe'); if (Math.abs($iframe.height() - heg) < (diffVal || 9000)){ layero.animate({height: layerHeight, top: layerTop}, 20); - $iframe.animate({height: heg}, 20); + $iframe.animate({height: heg + 1}, 20); } } }