Skip to content

Commit 89b8890

Browse files
authored
fix: hide view to avoid overlap when position is set to -9999px; (#837)
1 parent 7bfac53 commit 89b8890

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/vue-virtual-scroller/src/components/RecycleScroller.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
{
4141
width: gridItems ? `${direction === 'vertical' ? itemSecondarySize || itemSize : itemSize}px` : undefined,
4242
height: gridItems ? `${direction === 'horizontal' ? itemSecondarySize || itemSize : itemSize}px` : undefined,
43+
visibility: view.nr.used ? 'visible' : 'hidden',
4344
}
4445
]
4546
: null"

0 commit comments

Comments
 (0)