summaryrefslogtreecommitdiffstats
path: root/examples/scrollable
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-07-12 19:57:39 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-07-12 20:00:14 +0200
commit3f480d3d18c41188bf40ead0a3dc4497316f11ae (patch)
tree826fa9e0acdf3a4e003f882c94ff24a4ac9f50e4 /examples/scrollable
parent2513213e8953fbaccb9ece1cabd3697cbca8aa2c (diff)
downloadiced-3f480d3d18c41188bf40ead0a3dc4497316f11ae.tar.gz
iced-3f480d3d18c41188bf40ead0a3dc4497316f11ae.tar.bz2
iced-3f480d3d18c41188bf40ead0a3dc4497316f11ae.zip
Rename `embed_*` in `Scrollable` to simply `spacing`
Diffstat (limited to 'examples/scrollable')
-rw-r--r--examples/scrollable/src/main.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/examples/scrollable/src/main.rs b/examples/scrollable/src/main.rs
index de4f2f9a..969f385e 100644
--- a/examples/scrollable/src/main.rs
+++ b/examples/scrollable/src/main.rs
@@ -216,13 +216,14 @@ impl ScrollableDemo {
.padding([40, 0])
.spacing(40),
)
- .direction(scrollable::Direction::Vertical(
- scrollable::Scrollbar::new()
+ .direction(scrollable::Direction::Vertical {
+ scrollbar: scrollable::Scrollbar::new()
.width(self.scrollbar_width)
.margin(self.scrollbar_margin)
.scroller_width(self.scroller_width)
.anchor(self.anchor),
- ))
+ spacing: None,
+ })
.width(Fill)
.height(Fill)
.id(SCROLLABLE_ID.clone())
@@ -242,13 +243,14 @@ impl ScrollableDemo {
.padding([0, 40])
.spacing(40),
)
- .direction(scrollable::Direction::Horizontal(
- scrollable::Scrollbar::new()
+ .direction(scrollable::Direction::Horizontal {
+ scrollbar: scrollable::Scrollbar::new()
.width(self.scrollbar_width)
.margin(self.scrollbar_margin)
.scroller_width(self.scroller_width)
.anchor(self.anchor),
- ))
+ spacing: None,
+ })
.width(Fill)
.height(Fill)
.id(SCROLLABLE_ID.clone())