diff options
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/widgets/tui_textfield.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/widgets/tui_textfield.rs b/src/ui/widgets/tui_textfield.rs index 6d89b14..f1e9cc7 100644 --- a/src/ui/widgets/tui_textfield.rs +++ b/src/ui/widgets/tui_textfield.rs @@ -109,10 +109,10 @@ impl<'a> TuiTextField<'a> { if let Some(menu) = self._menu.as_mut() { let menu_len = menu.len(); - let menu_y = if menu_len + 1 > f_size.height as usize { + let menu_y = if menu_len + 2 > f_size.height as usize { 0 } else { - (f_size.height as usize - menu_len - 1) as u16 + (f_size.height as usize - menu_len - 2) as u16 }; let rect = Rect { |