diff options
| author | 2024-01-12 14:41:40 +0100 | |
|---|---|---|
| committer | 2024-01-12 14:41:40 +0100 | |
| commit | 50c310fd9f692eafb2350827636ffbd6d7b6c9b9 (patch) | |
| tree | 0f1ab4182a0cce7469e01881c095e0c3988b3f9a /examples/todos | |
| parent | 63e9adac56e9a4f21ec82137329d7c455fbf630b (diff) | |
| parent | 11474bdc3e1a43e6c167d7b98f22d87933dbd2b6 (diff) | |
| download | iced-50c310fd9f692eafb2350827636ffbd6d7b6c9b9.tar.gz iced-50c310fd9f692eafb2350827636ffbd6d7b6c9b9.tar.bz2 iced-50c310fd9f692eafb2350827636ffbd6d7b6c9b9.zip | |
Merge pull request #2192 from iced-rs/fix/layout-inconsistencies
Layout consistency
Diffstat (limited to '')
| -rw-r--r-- | examples/todos/src/main.rs | 9 | 
1 files changed, 1 insertions, 8 deletions
| diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs index 4dac032c..aad47c20 100644 --- a/examples/todos/src/main.rs +++ b/examples/todos/src/main.rs @@ -254,13 +254,7 @@ impl Application for Todos {                      .spacing(20)                      .max_width(800); -                scrollable( -                    container(content) -                        .width(Length::Fill) -                        .padding(40) -                        .center_x(), -                ) -                .into() +                scrollable(container(content).padding(40).center_x()).into()              }          }      } @@ -472,7 +466,6 @@ fn empty_message(message: &str) -> Element<'_, Message> {              .horizontal_alignment(alignment::Horizontal::Center)              .style(Color::from([0.7, 0.7, 0.7])),      ) -    .width(Length::Fill)      .height(200)      .center_y()      .into() | 
