Rename embed_* in Scrollable to simply spacing

This commit is contained in:
Héctor Ramón Jiménez 2024-07-12 19:57:39 +02:00
parent 2513213e89
commit 3f480d3d18
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 64 additions and 49 deletions

View file

@ -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())