From d610d82b01553ea107e57b9a9af5a5a02c037a88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dailer-=E5=88=98=E8=8D=A3=E6=AD=86?= Date: Thu, 5 Jan 2023 17:17:37 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-88040=20fix:=20=E3=80=90BI6.0=E3=80=91?= =?UTF-8?q?=E3=80=90=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86-=E6=9C=BA?= =?UTF-8?q?=E6=9E=84=E9=83=A8=E9=97=A8=E3=80=91=E6=9C=BA=E6=9E=84=E9=83=A8?= =?UTF-8?q?=E9=97=A8=E9=80=89=E6=8B=A9=E9=83=A8=E9=97=A8=E5=90=8E=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E7=94=A8=E6=88=B7=EF=BC=8C=E7=82=B9=E5=87=BB=E5=85=A8?= =?UTF-8?q?=E9=80=89=E6=98=BE=E7=A4=BA=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/platform/web/dom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/platform/web/dom.js b/src/core/platform/web/dom.js index 945aa359a..6a2f3fb95 100644 --- a/src/core/platform/web/dom.js +++ b/src/core/platform/web/dom.js @@ -448,7 +448,7 @@ viewportBounds = document.documentElement.getBoundingClientRect(); var left; if (comboRect.left + comboRect.width / 2 + popupRect.width / 2 > viewportBounds.width) { - left = viewportBounds.width - comboRect.width - positionRelativeElementRect.left; + left = viewportBounds.width - popupRect.width - positionRelativeElementRect.left; } else { left = comboRect.left + (comboRect.width - popupRect.width) / 2 - positionRelativeElementRect.left; }