Browse Source

always assign self.odd

dynamic-grid
René Rössler 3 years ago
parent
commit
4920f48ab4
  1. 4
      egui_extras/src/table.rs

4
egui_extras/src/table.rs

@ -179,9 +179,7 @@ impl<'a> TableBody<'a> {
let count = (max_height / height).ceil() as usize;
let end = cmp::min(start + count, rows);
if start % 2 != 0 {
self.odd = false;
}
self.odd = start % 2 == 0;
for idx in start..end {
row(

Loading…
Cancel
Save