From 7527e63742531188a5fa45bceea7fe19072f7220 Mon Sep 17 00:00:00 2001 From: Yuri2 <824831811@qq.com> Date: Tue, 11 Jul 2017 10:58:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E4=B8=AAbug?= =?UTF-8?q?=EF=BC=8C=E5=9C=A8jq3=E7=8E=AF=E5=A2=83=E4=B8=8B=EF=BC=8C?= =?UTF-8?q?=E8=B0=83=E6=95=B4layer=E5=AE=BD=E9=AB=98=E6=97=B6iframe?= =?UTF-8?q?=E7=9A=84=E9=AB=98=E5=BA=A6=E5=B9=B6=E4=B8=8D=E4=BC=9A=E5=8F=98?= =?UTF-8?q?=E5=8C=96=E3=80=82=20=E4=BF=AE=E6=AD=A3=E6=96=B9=E6=A1=88?= =?UTF-8?q?=EF=BC=9AbtnHeight=E7=9A=84=E8=B5=8B=E5=80=BC=E6=9C=AB=E5=B0=BE?= =?UTF-8?q?=E5=8A=A0=E4=B8=8A=20||0=20=E9=98=B2=E6=AD=A2=E5=87=BA=E7=8E=B0?= =?UTF-8?q?undefined=20Signed-off-by:=20Yuri2=20<824831811@qq.com>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layer.js b/src/layer.js index 0cc4e0d..8a9b970 100644 --- a/src/layer.js +++ b/src/layer.js @@ -773,7 +773,7 @@ layer.style = function(index, options, limit){ } layero.css(options); - btnHeight = layero.find('.'+doms[6]).outerHeight(); + btnHeight = layero.find('.'+doms[6]).outerHeight()||0; //bug fix from Yuri2 (undefined btnHeight in jq3) if(type === ready.type[2]){ layero.find('iframe').css({