diff options
Diffstat (limited to 'src/components/mail/view/thread.rs')
-rw-r--r-- | src/components/mail/view/thread.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/components/mail/view/thread.rs b/src/components/mail/view/thread.rs index 34001386..63642893 100644 --- a/src/components/mail/view/thread.rs +++ b/src/components/mail/view/thread.rs @@ -564,7 +564,10 @@ impl ThreadView { if rows < visibles.len() { ScrollBar::default().set_show_arrows(true).draw( grid, - (pos_inc(upper_left!(area), (width!(area), 0)), bottom_right), + ( + pos_inc(upper_left!(area), (width!(area).saturating_sub(1), 0)), + bottom_right, + ), context, 2 * self.cursor_pos, rows, @@ -618,7 +621,10 @@ impl ThreadView { if rows < visibles.len() { ScrollBar::default().set_show_arrows(true).draw( grid, - (pos_inc(upper_left!(area), (width!(area), 0)), bottom_right), + ( + pos_inc(upper_left!(area), (width!(area).saturating_sub(1), 0)), + bottom_right, + ), context, 2 * self.cursor_pos, rows, |