Browse Source

BI-145169 fix: 【V6发散】数据集编辑界面,表头下拉,内容显示全了但是还是出现滚动条,导致删除按钮等看不见

research/test
翠屏山最速下山传说 10 months ago
parent
commit
6e76da813f
  1. 2
      packages/fineui/src/core/utils/dom.js

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

Loading…
Cancel
Save