diff options
author | 2024-02-15 02:08:22 +0100 | |
---|---|---|
committer | 2024-02-15 02:08:22 +0100 | |
commit | e8049af23dbf4988ff24b75b90104295f61098a2 (patch) | |
tree | 21840d4799c0645d9572af6d44c58bd7be117a39 /examples/scrollable | |
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 'examples/scrollable')
-rw-r--r-- | examples/scrollable/src/main.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/examples/scrollable/src/main.rs b/examples/scrollable/src/main.rs index 29c39c36..ac18fd38 100644 --- a/examples/scrollable/src/main.rs +++ b/examples/scrollable/src/main.rs @@ -216,9 +216,9 @@ impl Application for ScrollableDemo { column![ scroll_to_end_button(), text("Beginning!"), - vertical_space(1200), + vertical_space().height(1200), text("Middle!"), - vertical_space(1200), + vertical_space().height(1200), text("End!"), scroll_to_beginning_button(), ] @@ -241,9 +241,9 @@ impl Application for ScrollableDemo { row![ scroll_to_end_button(), text("Beginning!"), - horizontal_space(1200), + horizontal_space().width(1200), text("Middle!"), - horizontal_space(1200), + horizontal_space().width(1200), text("End!"), scroll_to_beginning_button(), ] @@ -268,25 +268,25 @@ impl Application for ScrollableDemo { row![ column![ text("Let's do some scrolling!"), - vertical_space(2400) + vertical_space().height(2400) ], scroll_to_end_button(), text("Horizontal - Beginning!"), - horizontal_space(1200), + horizontal_space().width(1200), //vertical content column![ text("Horizontal - Middle!"), scroll_to_end_button(), text("Vertical - Beginning!"), - vertical_space(1200), + vertical_space().height(1200), text("Vertical - Middle!"), - vertical_space(1200), + vertical_space().height(1200), text("Vertical - End!"), scroll_to_beginning_button(), - vertical_space(40), + vertical_space().height(40), ] .spacing(40), - horizontal_space(1200), + horizontal_space().width(1200), text("Horizontal - End!"), scroll_to_beginning_button(), ] |