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)); } }