diff options
author | 2024-05-03 09:34:28 +0200 | |
---|---|---|
committer | 2024-05-03 09:34:28 +0200 | |
commit | 38cf87cb45484c7e52ddf775fb3abd7edbecc652 (patch) | |
tree | ea1d229fda688008bd31c285b2dfe5e444983efc /examples/tour | |
parent | 1cefe6be210cdae8c6769673e8d23c6781a988f1 (diff) | |
parent | 4c658c41e9e5bf2c0c963ef49c1830257781b16e (diff) | |
download | iced-38cf87cb45484c7e52ddf775fb3abd7edbecc652.tar.gz iced-38cf87cb45484c7e52ddf775fb3abd7edbecc652.tar.bz2 iced-38cf87cb45484c7e52ddf775fb3abd7edbecc652.zip |
Merge pull request #2423 from iced-rs/center-widget-helper
Introduce `center` widget helper
Diffstat (limited to 'examples/tour')
-rw-r--r-- | examples/tour/src/main.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs index e3a2ca87..bae6490d 100644 --- a/examples/tour/src/main.rs +++ b/examples/tour/src/main.rs @@ -76,11 +76,10 @@ impl Tour { } else { content }) - .width(Length::Fill) .center_x(), ); - container(scrollable).height(Length::Fill).center_y().into() + container(scrollable).center_y().into() } } @@ -670,7 +669,6 @@ fn ferris<'a>( .filter_method(filter_method) .width(width), ) - .width(Length::Fill) .center_x() } |