diff options
| author | 2024-02-15 02:57:52 +0100 | |
|---|---|---|
| committer | 2024-02-15 02:57:52 +0100 | |
| commit | 84cc9f130b4e29219d47db42cdb76548b054c66b (patch) | |
| tree | 5758716b7ca1a35e589969efd9537f5e56dd1e27 /examples/visible_bounds | |
| parent | 5827023ccc3f80012b17dbfe778fbd8b63186c99 (diff) | |
| parent | 777e2e34f50c440f59d9a407f75be80fbbfaccae (diff) | |
| download | iced-84cc9f130b4e29219d47db42cdb76548b054c66b.tar.gz iced-84cc9f130b4e29219d47db42cdb76548b054c66b.tar.bz2 iced-84cc9f130b4e29219d47db42cdb76548b054c66b.zip  | |
Merge pull request #2253 from iced-rs/improve-ergonomics
Improve some widget ergonomics
Diffstat (limited to 'examples/visible_bounds')
| -rw-r--r-- | examples/visible_bounds/src/main.rs | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/visible_bounds/src/main.rs b/examples/visible_bounds/src/main.rs index 33d76da8..bef5d296 100644 --- a/examples/visible_bounds/src/main.rs +++ b/examples/visible_bounds/src/main.rs @@ -81,7 +81,7 @@ impl Application for Example {          let data_row = |label, value, color| {              row![                  text(label), -                horizontal_space(Length::Fill), +                horizontal_space(),                  text(value).font(Font::MONOSPACE).size(14).style(color),              ]              .height(40) @@ -127,21 +127,21 @@ impl Application for Example {              scrollable(                  column![                      text("Scroll me!"), -                    vertical_space(400), +                    vertical_space().height(400),                      container(text("I am the outer container!"))                          .id(OUTER_CONTAINER.clone())                          .padding(40)                          .style(theme::Container::Box), -                    vertical_space(400), +                    vertical_space().height(400),                      scrollable(                          column![                              text("Scroll me!"), -                            vertical_space(400), +                            vertical_space().height(400),                              container(text("I am the inner container!"))                                  .id(INNER_CONTAINER.clone())                                  .padding(40)                                  .style(theme::Container::Box), -                            vertical_space(400) +                            vertical_space().height(400),                          ]                          .padding(20)                      )  | 
