Fix vertical off-by-one

This commit is contained in:
Joscha 2022-06-13 22:41:58 +02:00
parent f8d365064c
commit 3b8cd6c0a1

View file

@ -305,7 +305,7 @@ impl<M: Msg> TreeView<M> {
// TODO Ensure there is no focus // TODO Ensure there is no focus
// Start layout at the bottom of the screen // Start layout at the bottom of the screen
let mut layout = Layout::new_below(height); let mut layout = Layout::new_below(height - 1);
// Expand layout upwards until the edge of the screen // Expand layout upwards until the edge of the screen
if let Some(last_tree) = store.last_tree(room).await { if let Some(last_tree) = store.last_tree(room).await {