Browse Source

Pull request #288291: BI-154253 fix: 点击报错

Merge in DEC/fineui from ~JIMMY.CHAI/dec-fineui:feature/x to feature/x

* commit '4b0f0a951b004e554ff76617bad7e6db0b27e94e':
  BI-154253 fix: 点击报错
master
Jimmy.Chai-柴嘉明 3 months ago
parent
commit
4c1e562b55
  1. 2
      packages/fineui/src/core/utils/dom.js

2
packages/fineui/src/core/utils/dom.js

@ -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) {

Loading…
Cancel
Save