summaryrefslogtreecommitdiffstats
path: root/examples/scrollable/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-02-15 02:57:52 +0100
committerLibravatar GitHub <noreply@github.com>2024-02-15 02:57:52 +0100
commit84cc9f130b4e29219d47db42cdb76548b054c66b (patch)
tree5758716b7ca1a35e589969efd9537f5e56dd1e27 /examples/scrollable/src
parent5827023ccc3f80012b17dbfe778fbd8b63186c99 (diff)
parent777e2e34f50c440f59d9a407f75be80fbbfaccae (diff)
downloadiced-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/scrollable/src')
-rw-r--r--examples/scrollable/src/main.rs20
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(),
]