diff options
author | 2024-02-15 02:08:22 +0100 | |
---|---|---|
committer | 2024-02-15 02:08:22 +0100 | |
commit | e8049af23dbf4988ff24b75b90104295f61098a2 (patch) | |
tree | 21840d4799c0645d9572af6d44c58bd7be117a39 /examples/tour/src/main.rs | |
parent | 9dd20ead085ff3b9b4bd441b5e4938cf8e813f35 (diff) | |
download | iced-e8049af23dbf4988ff24b75b90104295f61098a2.tar.gz iced-e8049af23dbf4988ff24b75b90104295f61098a2.tar.bz2 iced-e8049af23dbf4988ff24b75b90104295f61098a2.zip |
Make `horizontal_space` and `vertical_space` fill by default
Diffstat (limited to '')
-rw-r--r-- | examples/tour/src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs index 15d37896..509f46e7 100644 --- a/examples/tour/src/main.rs +++ b/examples/tour/src/main.rs @@ -66,7 +66,7 @@ impl Sandbox for Tour { ); } - controls = controls.push(horizontal_space(Length::Fill)); + controls = controls.push(horizontal_space()); if steps.can_continue() { controls = @@ -574,14 +574,14 @@ impl<'a> Step { text("Tip: You can use the scrollbar to scroll down faster!") .size(16), ) - .push(vertical_space(4096)) + .push(vertical_space().height(4096)) .push( text("You are halfway there!") .width(Length::Fill) .size(30) .horizontal_alignment(alignment::Horizontal::Center), ) - .push(vertical_space(4096)) + .push(vertical_space().height(4096)) .push(ferris(300, image::FilterMethod::Linear)) .push( text("You made it!") |