summaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2020-11-23 06:37:37 +0200
committerManos Pitsidianakis <el13635@mail.ntua.gr>2020-11-24 02:18:41 +0200
commit458209b4480caf5cb8ab2eeae256995cdf8e3ff1 (patch)
treeb2fbf6bbfe9b219ffb9011fce05bfb67d99f46fc /src/components
parentb7c48a1ed0d952aad37da248963bb1fcf0456017 (diff)
view/thread: clear empty space in draw_list
Diffstat (limited to 'src/components')
-rw-r--r--src/components/mail/view/thread.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/components/mail/view/thread.rs b/src/components/mail/view/thread.rs
index 9d09b119..554852be 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 {