Skip to content

Commit

Permalink
fix: 滚动高度不设置
Browse files Browse the repository at this point in the history
  • Loading branch information
kongjing committed Mar 24, 2023
1 parent 996f942 commit ea53f61
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/vantui/src/virtual-list/virtual-half-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ function VirtualHalfList_(
<ScrollView
className={`van-virtual-list ${clsPrefix} ${className}`}
scrollY
scrollTop={0}
style={{ height: addUnit(height), ...(style as React.CSSProperties) }}
onScroll={handleScroll}
scrollIntoView={scrollIntoView}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ function VirtualWaterfallList_(
<ScrollView
className={`van-virtual-list ${clsPrefix} ${className}`}
scrollY
scrollTop={0}
style={{ height: addUnit(height), ...(style as React.CSSProperties) }}
onScroll={handleScroll}
scrollIntoView={scrollIntoView}
Expand Down

0 comments on commit ea53f61

Please sign in to comment.