Remove unused field in scrollable::Scrollbar

This commit is contained in:
Héctor Ramón Jiménez 2021-12-07 16:09:22 +07:00
parent 3f5ec5b20a
commit aed5a0d5f9
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -199,7 +199,6 @@ impl<'a, Message, Renderer: crate::Renderer> Scrollable<'a, Message, Renderer> {
Some(Scrollbar {
outer_bounds,
bounds: scrollbar_bounds,
margin: self.scrollbar_margin,
scroller: Scroller {
bounds: scroller_bounds,
},
@ -720,9 +719,6 @@ struct Scrollbar {
/// The bounds of the [`Scrollbar`].
bounds: Rectangle,
/// The margin within the [`Scrollbar`].
margin: u16,
/// The bounds of the [`Scroller`].
scroller: Scroller,
}