mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
parent
3d07dd2870
commit
af07fb77e7
@ -861,9 +861,14 @@ export default class Table extends React.Component<TableProps, object> {
|
|||||||
while (nextSibling) {
|
while (nextSibling) {
|
||||||
const positon = getComputedStyle(nextSibling).position;
|
const positon = getComputedStyle(nextSibling).position;
|
||||||
if (positon !== 'absolute' && positon !== 'fixed') {
|
if (positon !== 'absolute' && positon !== 'fixed') {
|
||||||
nextSiblingHeight +=
|
const rect1 = selfNode.getBoundingClientRect();
|
||||||
nextSibling.offsetHeight +
|
const rect2 = nextSibling.getBoundingClientRect();
|
||||||
getStyleNumber(nextSibling, 'margin-bottom');
|
|
||||||
|
if (rect1.bottom <= rect2.top) {
|
||||||
|
nextSiblingHeight +=
|
||||||
|
nextSibling.offsetHeight +
|
||||||
|
getStyleNumber(nextSibling, 'margin-bottom');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
nextSibling = nextSibling.nextElementSibling as HTMLElement;
|
nextSibling = nextSibling.nextElementSibling as HTMLElement;
|
||||||
|
Loading…
Reference in New Issue
Block a user