Wrap spacers in scrollable as well.
This commit is contained in:
parent
1041af65d6
commit
21efe1546c
1 changed files with 89 additions and 89 deletions
|
|
@ -120,8 +120,7 @@ impl Sandbox for Window {
|
|||
},
|
||||
);
|
||||
|
||||
let content: Element<_> = scrollable(
|
||||
list_view!(
|
||||
let content: Element<_> = list_view!(
|
||||
list_section!(
|
||||
"Debug",
|
||||
choose_theme,
|
||||
|
|
@ -207,15 +206,16 @@ impl Sandbox for Window {
|
|||
checkbox("Checkbox", self.checkbox_value, Message::CheckboxToggled),
|
||||
)
|
||||
)
|
||||
)
|
||||
.into();
|
||||
|
||||
container(row![
|
||||
if self.debug { sidebar.explain(Color::WHITE) } else { sidebar },
|
||||
scrollable(row![
|
||||
horizontal_space(Length::Fill),
|
||||
if self.debug { content.explain(Color::WHITE) } else { content },
|
||||
horizontal_space(Length::Fill),
|
||||
])
|
||||
])
|
||||
.padding([16, 8])
|
||||
.width(Length::Fill)
|
||||
.height(Length::Fill)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue