diff options
author | 2024-05-13 17:56:02 +0200 | |
---|---|---|
committer | 2024-05-13 17:56:02 +0200 | |
commit | 05f69f495e9b52e9a7d7bada420558d4c4f6730c (patch) | |
tree | 8e1610757754831268ad0bbf5df9c8a4ea78144e /examples/todos | |
parent | b30d34f728fdae65d4d2cb0afe2dcade9b4bb0dc (diff) | |
download | iced-05f69f495e9b52e9a7d7bada420558d4c4f6730c.tar.gz iced-05f69f495e9b52e9a7d7bada420558d4c4f6730c.tar.bz2 iced-05f69f495e9b52e9a7d7bada420558d4c4f6730c.zip |
Ask for explicit `Length` in `center_*` methods
Diffstat (limited to 'examples/todos')
-rw-r--r-- | examples/todos/src/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs index 8119bc91..e7e05b29 100644 --- a/examples/todos/src/main.rs +++ b/examples/todos/src/main.rs @@ -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() } } } |