diff --git a/examples/example.rs b/examples/example.rs index 2c9bbed..d4c85fa 100644 --- a/examples/example.rs +++ b/examples/example.rs @@ -120,7 +120,11 @@ fn run_app(terminal: &mut Terminal, mut app: App) -> io::Result<( let area = frame.size(); let widget = Tree::new(app.items.clone()) .expect("all item identifiers are unique") - .block(Block::bordered().title(format!("Tree Widget {:?}", app.state))) + .block( + Block::bordered() + .title("Tree Widget") + .title_bottom(format!("{:?}", app.state)), + ) .scrollbar_margin(Margin::new(0, 1)) .scrollbar(Some( Scrollbar::new(ScrollbarOrientation::VerticalRight)