|
|
|
@ -743,7 +743,7 @@ export function getComboPosition(combo, popup, extraWidth, extraHeight, needAdap
|
|
|
|
|
} |
|
|
|
|
if (needAdaptHeight === true && popup.resetHeight) { |
|
|
|
|
const comboRect = combo.element[0].getBoundingClientRect(); |
|
|
|
|
const scale = comboRect.height / combo.element.height(); |
|
|
|
|
const scale = comboRect.height === 0 ? 1 : comboRect.height / combo.element.height(); |
|
|
|
|
const relativeOffset = positionRelativeElement ? positionRelativeElement.getBoundingClientRect().top : 0; |
|
|
|
|
const positionTop = position.top + relativeOffset; |
|
|
|
|
if (positionTop < comboRect.top) { |
|
|
|
|