Ask for explicit Length in center_* methods
This commit is contained in:
parent
b30d34f728
commit
05f69f495e
13 changed files with 40 additions and 41 deletions
|
|
@ -238,7 +238,10 @@ impl Todos {
|
|||
.spacing(20)
|
||||
.max_width(800);
|
||||
|
||||
scrollable(container(content).center_x().padding(40)).into()
|
||||
scrollable(
|
||||
container(content).center_x(Length::Fill).padding(40),
|
||||
)
|
||||
.into()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue