Browse Source

Merge pull request #267296 in DEC/fineui from master to feature/x

* commit 'b69cfbfaf21d804dd4ae20c1810ce1154dd0d629':
  BI-145169 fix: 【V6发散】数据集编辑界面,表头下拉,内容显示全了但是还是出现滚动条,导致删除按钮等看不见
master
superman 8 months ago
parent
commit
c51df98134
  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; const relativeOffset = positionRelativeElement ? positionRelativeElement.getBoundingClientRect().top : 0;
if (position.top < comboRect.top) { if (position.top < comboRect.top) {
popup.resetHeight(Math.min(viewportBounds.height - position.top - relativeOffset, comboRect.top, maxHeight)); 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)); popup.resetHeight(Math.min(viewportBounds.height - position.top - relativeOffset, viewportBounds.height - comboRect.bottom, maxHeight));
} }
} }

Loading…
Cancel
Save