Skip to content

Commit

Permalink
Enable horizontal scrollbar for debug console (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
ngg authored and gyscos committed May 6, 2019
1 parent fb0d26f commit cf86f64
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/cursive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
);
}
Expand Down

0 comments on commit cf86f64

Please sign in to comment.