mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 09:25:01 +00:00
Enable horizontal scrollbar for debug console (#341)
This commit is contained in:
parent
fb0d26fb4a
commit
cf86f64334
@ -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"),
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user