From cf86f643341acab653f3d65a652a3e61003f8433 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Mon, 6 May 2019 22:23:41 +0200 Subject: [PATCH] Enable horizontal scrollbar for debug console (#341) --- src/cursive.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/cursive.rs b/src/cursive.rs index 7daad73..8950544 100644 --- a/src/cursive.rs +++ b/src/cursive.rs @@ -285,10 +285,13 @@ impl Cursive { /// Currently, this will show logs if [`logger::init()`](crate::logger::init()) was called. pub fn show_debug_console(&mut self) { self.add_layer( - views::Dialog::around(views::ScrollView::new(views::IdView::new( - DEBUG_VIEW_ID, - views::DebugView::new(), - ))) + views::Dialog::around( + views::ScrollView::new(views::IdView::new( + DEBUG_VIEW_ID, + views::DebugView::new(), + )) + .scroll_x(true), + ) .title("Debug console"), ); }