Make content scrollable

This commit is contained in:
Eduardo Flores 2022-09-30 12:09:20 -07:00 • committed by GitHub
parent 7480635d1d
commit edddd058fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,6 +21,7 @@ use cosmic::{
row, row,
slider, slider,
text, text,
scrollable,
}, },
iced_lazy::responsive, iced_lazy::responsive,
}; };
@ -119,7 +120,8 @@ impl Sandbox for Window {
}, },
); );
let content: Element<_> = list_view!( let content: Element<_> = scrollable(
list_view!(
list_section!( list_section!(
"Debug", "Debug",
choose_theme, choose_theme,
@ -205,6 +207,7 @@ impl Sandbox for Window {
checkbox("Checkbox", self.checkbox_value, Message::CheckboxToggled), checkbox("Checkbox", self.checkbox_value, Message::CheckboxToggled),
) )
) )
)
.into(); .into();
container(row![ container(row![