view/thread: clear empty space in draw_list

jmap-eventsource
Manos Pitsidianakis 2020-11-23 06:37:37 +02:00
parent b7c48a1ed0
commit 458209b448
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 10 additions and 0 deletions

View File

@ -577,6 +577,16 @@ impl ThreadView {
visibles.len(),
);
}
if top_idx + rows > visibles.len() {
clear_area(
grid,
(
pos_inc(upper_left, (0, 2 * (visibles.len() - top_idx))),
bottom_right,
),
crate::conf::value(context, "theme_default"),
);
}
self.dirty = false;
context.dirty_areas.push_back(area);
} else {