diff --git a/components/vc-virtual-list/Filler.tsx b/components/vc-virtual-list/Filler.tsx index a4607311ed..2734d81a4d 100644 --- a/components/vc-virtual-list/Filler.tsx +++ b/components/vc-virtual-list/Filler.tsx @@ -23,7 +23,11 @@ const Filter: FunctionalComponent = ( }; if (offset !== undefined) { - outerStyle = { height: `${height}px`, position: 'relative', overflow: 'hidden' }; + outerStyle = { + height: `${height}px`, + ...(offset === 0 ? {} : { position: 'relative' }), + overflow: 'hidden', + }; innerStyle = { ...innerStyle,