Fix rendering of scrolled lists
This commit is contained in:
parent
9169cbb657
commit
ee7316f65b
1 changed files with 1 additions and 1 deletions
|
|
@ -309,7 +309,7 @@ impl<Id: Clone + Eq + Send> Widget for List<Id> {
|
||||||
for (i, row) in self.rows.into_iter().enumerate() {
|
for (i, row) in self.rows.into_iter().enumerate() {
|
||||||
let dy = i as i32 - offset;
|
let dy = i as i32 - offset;
|
||||||
if dy < 0 || dy >= size.height as i32 {
|
if dy < 0 || dy >= size.height as i32 {
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
frame.push(Pos::new(0, dy), row_size);
|
frame.push(Pos::new(0, dy), row_size);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue