Skip to content

Commit 72f4e5e

Browse files
committed
fix(components): update height calculation for virtual scroll to use getBoundingClientRect #PJM-22223
1 parent dcb92d2 commit 72f4e5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/components/board/scroll/entry-virtual-scroll.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export class ThyBoardEntryVirtualScrollStrategy extends AutoSizeVirtualScrollStr
138138
marginY = marginY + parseFloat(childStyle.marginBottom) + parseFloat(childStyle.marginTop);
139139
}
140140

141-
return cardElement.clientHeight + marginY;
141+
return cardElement.getBoundingClientRect().height + marginY;
142142
}
143143

144144
updateCardsHeight() {

0 commit comments

Comments
 (0)