Merge pull request #2668 from edwloef/master
Fix docs of `Scrollable::with_direction` and `Scrollable::direction`
This commit is contained in:
commit
2a2e20b0a3
1 changed files with 2 additions and 2 deletions
|
|
@ -95,7 +95,7 @@ where
|
|||
Self::with_direction(content, Direction::default())
|
||||
}
|
||||
|
||||
/// Creates a new vertical [`Scrollable`].
|
||||
/// Creates a new [`Scrollable`] with the given [`Direction`].
|
||||
pub fn with_direction(
|
||||
content: impl Into<Element<'a, Message, Theme, Renderer>>,
|
||||
direction: impl Into<Direction>,
|
||||
|
|
@ -137,7 +137,7 @@ where
|
|||
self
|
||||
}
|
||||
|
||||
/// Creates a new [`Scrollable`] with the given [`Direction`].
|
||||
/// Sets the [`Direction`] of the [`Scrollable`].
|
||||
pub fn direction(mut self, direction: impl Into<Direction>) -> Self {
|
||||
self.direction = direction.into();
|
||||
self.validate()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue