diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-11-20 17:04:52 -0500 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-11-20 17:04:52 -0500 |
commit | 29b19b1f1172632a1ef68a232d1058149be87c4a (patch) | |
tree | 888d806968f310b2fd6856c8cb6ce4db832ff9a0 /src/ui | |
parent | d3b75fa72c2241f5f7d932be2fcfc90654b528e8 (diff) |
fix last line of menu not clearing
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/widgets/tui_textfield.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/widgets/tui_textfield.rs b/src/ui/widgets/tui_textfield.rs index e17e7ea..0e413fc 100644 --- a/src/ui/widgets/tui_textfield.rs +++ b/src/ui/widgets/tui_textfield.rs @@ -109,7 +109,7 @@ impl<'a> TuiTextField<'a> { x: 0, y: menu_y, width: f_size.width, - height: menu_len as u16, + height: menu_len as u16 + 1, }; let menu_widget = TuiMenu::new(items); frame.render_widget(Clear, menu_rect); |