Skip to content

Commit

Permalink
fix(VirtualScroll): respect virtualScrollSliceSize #12049 (#12057)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdanpdan committed Jan 17, 2022
1 parent a2d10f7 commit 27558a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/components/virtual-scroll/use-virtual-scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -596,9 +596,9 @@ export function useVirtualScroll ({
: Math.ceil(scrollViewSize / virtualScrollItemSizeComputed.value)

const baseSize = Math.max(
10,
1,
view,
Math.ceil(props.virtualScrollSliceSize / multiplier)
Math.ceil((props.virtualScrollSliceSize > 0 ? props.virtualScrollSliceSize : 10) / multiplier)
)

virtualScrollSliceSizeComputed.value = {
Expand Down

0 comments on commit 27558a8

Please sign in to comment.