From 4a3bbbb9983209e31caed9736101d82db348d256 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Mon, 7 May 2018 23:17:07 -0700 Subject: [PATCH] lorem example: remove unnecessary full_screen() --- examples/lorem.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/examples/lorem.rs b/examples/lorem.rs index a76a9e3..4c4a0ca 100644 --- a/examples/lorem.rs +++ b/examples/lorem.rs @@ -1,9 +1,8 @@ extern crate cursive; -use cursive::Cursive; use cursive::align::HAlign; -use cursive::view::Boxable; use cursive::views::{Dialog, Panel, TextView}; +use cursive::Cursive; fn main() { // Read some long text from a file. @@ -18,11 +17,10 @@ fn main() { // and will adapt to the terminal size. siv.add_fullscreen_layer( Dialog::around(Panel::new(TextView::new(content))) + .title("Unicode and wide-character support") // This is the alignment for the button .h_align(HAlign::Center) - .button("Quit", |s| s.quit()) - .title("Unicode and wide-character support") - .full_screen(), + .button("Quit", |s| s.quit()), ); // Show a popup on top of the view. siv.add_layer(Dialog::info(