From 458209b4480caf5cb8ab2eeae256995cdf8e3ff1 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Mon, 23 Nov 2020 06:37:37 +0200 Subject: [PATCH] view/thread: clear empty space in draw_list --- src/components/mail/view/thread.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/components/mail/view/thread.rs b/src/components/mail/view/thread.rs index 9d09b1198..554852be0 100644 --- a/src/components/mail/view/thread.rs +++ b/src/components/mail/view/thread.rs @@ -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 {