mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +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.
|
/// 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(
|
||||||
DEBUG_VIEW_ID,
|
views::ScrollView::new(views::IdView::new(
|
||||||
views::DebugView::new(),
|
DEBUG_VIEW_ID,
|
||||||
)))
|
views::DebugView::new(),
|
||||||
|
))
|
||||||
|
.scroll_x(true),
|
||||||
|
)
|
||||||
.title("Debug console"),
|
.title("Debug console"),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user