Fix rendering of scrolled lists

This commit is contained in:
Joscha 2022-07-14 14:04:51 +02:00
parent 9169cbb657
commit ee7316f65b

View file

@ -309,7 +309,7 @@ impl<Id: Clone + Eq + Send> Widget for List<Id> {
for (i, row) in self.rows.into_iter().enumerate() {
let dy = i as i32 - offset;
if dy < 0 || dy >= size.height as i32 {
break;
continue;
}
frame.push(Pos::new(0, dy), row_size);