Replace ignored doc-tests with additional documentation for Padding
This commit is contained in:
parent
b94cd7a2a8
commit
8a3b71df8b
16 changed files with 32 additions and 75 deletions
|
|
@ -42,11 +42,6 @@ impl<'a, Message> Scrollable<'a, Message> {
|
|||
}
|
||||
|
||||
/// Sets the [`Padding`] of the [`Scrollable`].
|
||||
///```ignore
|
||||
/// Scrollable::new(/*...*/).padding(20); // 20px on all sides
|
||||
/// Scrollable::new(/*...*/).padding([10, 20]); // top/bottom, left/right
|
||||
/// Scrollable::new(/*...*/).padding([5, 10, 15, 20]); // top, right, bottom, left
|
||||
/// ```
|
||||
pub fn padding<P: Into<Padding>>(mut self, padding: P) -> Self {
|
||||
self.content = self.content.padding(padding);
|
||||
self
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue