File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
packages/@react-spectrum/s2/src Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -215,12 +215,7 @@ export class S2TableLayout<T> extends TableLayout<T> {
215
215
let layoutNode = super . buildLoader ( node , x , y ) ;
216
216
let { layoutInfo} = layoutNode ;
217
217
layoutInfo . allowOverflow = true ;
218
- layoutInfo . rect . width = this . virtualizer ! . visibleRect . width ;
219
- // If performing first load or empty, the body will be sticky so we don't want to apply sticky to the loader, otherwise it will
220
- // affect the positioning of the empty state renderer
221
- let collection = this . virtualizer ! . collection ;
222
- let isEmptyOrLoading = collection ?. size === 0 || ( collection . size === 1 && collection . getItem ( collection . getFirstKey ( ) ! ) ! . type === 'loader' ) ;
223
- layoutInfo . isSticky = ! isEmptyOrLoading ;
218
+ layoutInfo . rect . width = this . virtualizer ! . contentSize . width ;
224
219
return layoutNode ;
225
220
}
226
221
You can’t perform that action at this time.
0 commit comments