Enable horizontal scrollbar for debug console (#341)

This commit is contained in:
Gergely Nagy 2019-05-06 22:23:41 +02:00 committed by Alexandre Bury
parent fb0d26fb4a
commit cf86f64334

View File

@ -285,10 +285,13 @@ impl Cursive {
/// Currently, this will show logs if [`logger::init()`](crate::logger::init()) was called. /// Currently, this will show logs if [`logger::init()`](crate::logger::init()) was called.
pub fn show_debug_console(&mut self) { pub fn show_debug_console(&mut self) {
self.add_layer( self.add_layer(
views::Dialog::around(views::ScrollView::new(views::IdView::new( views::Dialog::around(
views::ScrollView::new(views::IdView::new(
DEBUG_VIEW_ID, DEBUG_VIEW_ID,
views::DebugView::new(), views::DebugView::new(),
))) ))
.scroll_x(true),
)
.title("Debug console"), .title("Debug console"),
); );
} }