summaryrefslogtreecommitdiffstats
path: root/ui/src/components/mail/view
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2019-08-17 12:56:11 +0300
committerManos Pitsidianakis <el13635@mail.ntua.gr>2019-08-17 12:56:11 +0300
commit2610e9c05510f36474873e4b2f8eb1111c93d654 (patch)
tree1b9e39d5337a5b009d9d026f5accc763a24634a6 /ui/src/components/mail/view
parentc0dcd7254a6704f6b1322e69b0a08a25c190078e (diff)
ui: don't check terminal size in ThreadView
Diffstat (limited to 'ui/src/components/mail/view')
-rw-r--r--ui/src/components/mail/view/thread.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/ui/src/components/mail/view/thread.rs b/ui/src/components/mail/view/thread.rs
index a9b7e6f0..acb443ce 100644
--- a/ui/src/components/mail/view/thread.rs
+++ b/ui/src/components/mail/view/thread.rs
@@ -864,11 +864,7 @@ impl fmt::Display for ThreadView {
impl Component for ThreadView {
fn draw(&mut self, grid: &mut CellBuffer, area: Area, context: &mut Context) {
- let total_rows = height!(area);
let total_cols = width!(area);
- if total_rows < 24 || total_cols < 80 {
- return;
- }
/* If user has selected another mail to view, change to it */
if self.new_expanded_pos != self.expanded_pos {