From c91f8a10d25cc6680175863695e5bf1b78e6ff03 Mon Sep 17 00:00:00 2001 From: morning-star <26325820+Sight-wcg@users.noreply.github.com> Date: Mon, 20 Oct 2025 12:17:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(layer):=20=E4=BF=AE=E5=A4=8D=20layer.tips?= =?UTF-8?q?=20=E5=9C=A8=E8=A7=A6=E5=8F=91=E5=85=83=E7=B4=A0=E5=AE=BD?= =?UTF-8?q?=E5=BA=A6=E8=BE=83=E5=B0=8F=E6=97=B6=E7=9A=84=E5=AE=9A=E4=BD=8D?= =?UTF-8?q?=20(#2871)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/layer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/layer.js b/src/modules/layer.js index 2ae9a95e..2f8a592b 100644 --- a/src/modules/layer.js +++ b/src/modules/layer.js @@ -693,7 +693,8 @@ Class.pt.tips = function(){ goal.tipLeft = goal.left + goal.width - layArea[0]; tipsG.css({right: 12, left: 'auto'}); } else { - goal.tipLeft = goal.left; + goal.tipLeft = goal.left - (goal.width * 0.75 < 21 ? 21 - goal.width * 0.5 : 0); + goal.tipLeft = Math.max(goal.tipLeft, 0); } };