fix(dtmm): Fix scrolling log view

This commit is contained in:
Lucas Schwiderski 2023-02-28 11:05:15 +01:00
parent e5a72731dd
commit f7627c091b
Signed by: lucas
GPG key ID: AA12679AAA6DF4D8

View file

@ -265,13 +265,11 @@ fn build_log_view() -> impl Widget<State> {
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<State> {