Skip to content

Commit

Permalink
example: disable inf scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Reiter committed Sep 15, 2024
1 parent 7d36182 commit 397e0f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/variants/scroll_padding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ impl ScrollPaddingListView {
return (line, 3);
});

return ListView::new(builder, 30).scroll_padding(5);
return ListView::new(builder, 30)
.infinite_scrolling(false)
.scroll_padding(5);
}
}

0 comments on commit 397e0f3

Please sign in to comment.