From 3202e33ece7287c1871c7de3b6a38448d0704706 Mon Sep 17 00:00:00 2001 From: Allen Date: Fri, 17 Jun 2022 01:04:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E8=AE=A1=E7=AE=97=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E5=AE=8C=E5=A4=87=E6=80=A7=E5=A4=84=E7=90=86=EF=BC=8C?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E8=A7=A3=E5=86=B3=E5=9C=A8frame=E4=B8=AD?= =?UTF-8?q?=E5=BA=95=E9=83=A8laydate=E4=B8=8B=E7=AB=AF=E8=A2=AB=E9=81=AE?= =?UTF-8?q?=E6=8C=A1=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 位置计算逻辑完备性处理,可以解决在frame中底部laydate下端被遮挡的问题。 --- src/modules/lay.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/lay.js b/src/modules/lay.js index 209f6052..e2993d14 100644 --- a/src/modules/lay.js +++ b/src/modules/lay.js @@ -175,6 +175,8 @@ if(obj.clickType === 'right'){ top = winArea() - elemHeight - margin*2; if(top < 0) top = 0; //不能溢出窗口顶部 + } else { + top = margin; // 位置计算逻辑完备性处理 } } }