From f7627c091b2132d5ca7ac3a690e8f5796ee7e6d3 Mon Sep 17 00:00:00 2001 From: Lucas Schwiderski Date: Tue, 28 Feb 2023 11:05:15 +0100 Subject: [PATCH] fix(dtmm): Fix scrolling log view --- crates/dtmm/src/ui/window/main.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/crates/dtmm/src/ui/window/main.rs b/crates/dtmm/src/ui/window/main.rs index 1853d2e..f7897f0 100644 --- a/crates/dtmm/src/ui/window/main.rs +++ b/crates/dtmm/src/ui/window/main.rs @@ -265,13 +265,11 @@ fn build_log_view() -> impl Widget { let label = Label::raw() .with_font(font) .with_line_break_mode(LineBreaking::WordWrap) - .lens(State::log); - - SizedBox::new(label) - .expand_width() - .height(128.0) + .lens(State::log) .scroll() - .vertical() + .vertical(); + + SizedBox::new(label).expand_width().height(128.0) } fn build_window() -> impl Widget {