summaryrefslogtreecommitdiffstats
path: root/ui/src/components/mail/view
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/components/mail/view')
-rw-r--r--ui/src/components/mail/view/thread.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/src/components/mail/view/thread.rs b/ui/src/components/mail/view/thread.rs
index 57483825..a9b7e6f0 100644
--- a/ui/src/components/mail/view/thread.rs
+++ b/ui/src/components/mail/view/thread.rs
@@ -683,7 +683,11 @@ impl ThreadView {
return;
}
- let mid = get_y(upper_left) + total_rows - bottom_entity_rows;
+ let mut mid = get_y(upper_left) + total_rows - bottom_entity_rows;
+ if mid >= get_y(bottom_right) {
+ mid = get_y(bottom_right) / 2;
+ }
+ let mid = mid;
/* First draw the thread subject on the first row */
let y = {