From 6e76da813fb0293820e8964d6d09a159f4f1d48f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=E5=B1=8F=E5=B1=B1=E6=9C=80=E9=80=9F=E4=B8=8B?= =?UTF-8?q?=E5=B1=B1=E4=BC=A0=E8=AF=B4?= Date: Tue, 12 Mar 2024 15:00:15 +0800 Subject: [PATCH] =?UTF-8?q?BI-145169=20fix:=20=E3=80=90V6=E5=8F=91?= =?UTF-8?q?=E6=95=A3=E3=80=91=E6=95=B0=E6=8D=AE=E9=9B=86=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=EF=BC=8C=E8=A1=A8=E5=A4=B4=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=EF=BC=8C=E5=86=85=E5=AE=B9=E6=98=BE=E7=A4=BA=E5=85=A8=E4=BA=86?= =?UTF-8?q?=E4=BD=86=E6=98=AF=E8=BF=98=E6=98=AF=E5=87=BA=E7=8E=B0=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E6=9D=A1=EF=BC=8C=E5=AF=BC=E8=87=B4=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E7=AD=89=E7=9C=8B=E4=B8=8D=E8=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/core/utils/dom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/fineui/src/core/utils/dom.js b/packages/fineui/src/core/utils/dom.js index 216587ec3..fbee6b287 100644 --- a/packages/fineui/src/core/utils/dom.js +++ b/packages/fineui/src/core/utils/dom.js @@ -746,7 +746,7 @@ export function getComboPosition(combo, popup, extraWidth, extraHeight, needAdap const relativeOffset = positionRelativeElement ? positionRelativeElement.getBoundingClientRect().top : 0; if (position.top < comboRect.top) { popup.resetHeight(Math.min(viewportBounds.height - position.top - relativeOffset, comboRect.top, maxHeight)); - } else if (position.top > comboRect.bottom) { + } else if (position.top >= comboRect.bottom) { popup.resetHeight(Math.min(viewportBounds.height - position.top - relativeOffset, viewportBounds.height - comboRect.bottom, maxHeight)); } }