From 26478d2a9ffcf76fae5f84680cee72ebba1f3d81 Mon Sep 17 00:00:00 2001 From: T2cc <5152438+gtguizhou@user.noreply.gitee.com> Date: Mon, 16 Aug 2021 07:38:36 +0000 Subject: [PATCH] =?UTF-8?q?update=20public/assets/js/fast.js.=20=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=AB=AF=E8=B0=83=E8=AF=95=E7=9A=84=E6=97=B6=E5=80=99?= =?UTF-8?q?=20top.$(".tab-pane.active").width()=20=E5=92=8C=20top.$(".tab-?= =?UTF-8?q?pane.active").height()=20=E4=BC=9A=E4=B8=BA=20null?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/assets/js/fast.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/assets/js/fast.js b/public/assets/js/fast.js index 06d7667b0..df820d773 100644 --- a/public/assets/js/fast.js +++ b/public/assets/js/fast.js @@ -187,7 +187,8 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, undefine } }, options ? options : {}); if ($(window).width() < 480 || (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream && top.$(".tab-pane.active").size() > 0)) { - options.area = [top.$(".tab-pane.active").width() + "px", top.$(".tab-pane.active").height() + "px"]; + options.area[0] = top.$(".tab-pane.active").width() ? top.$(".tab-pane.active").width() + 'px' : options.area[0] + options.area[1] = top.$(".tab-pane.active").height() ? top.$(".tab-pane.active").height() + 'px' : options.area[1] options.offset = [top.$(".tab-pane.active").scrollTop() + "px", "0px"]; } return Layer.open(options); -- Gitee