summaryrefslogtreecommitdiffstats
path: root/web/src/widget/scrollable.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@lich.io>2021-06-01 19:45:47 +0700
committerLibravatar Héctor Ramón <hector@lich.io>2021-06-01 19:45:47 +0700
commit8a3b71df8b619571ce0a972826cb5a3987b66b3d (patch)
tree3d1655b36aa8d7151c878e1879c03c8271a466a5 /web/src/widget/scrollable.rs
parentb94cd7a2a83d81769d31f6379539089ce68cbdcd (diff)
downloadiced-8a3b71df8b619571ce0a972826cb5a3987b66b3d.tar.gz
iced-8a3b71df8b619571ce0a972826cb5a3987b66b3d.tar.bz2
iced-8a3b71df8b619571ce0a972826cb5a3987b66b3d.zip
Replace ignored doc-tests with additional documentation for `Padding`
Diffstat (limited to 'web/src/widget/scrollable.rs')
-rw-r--r--web/src/widget/scrollable.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/web/src/widget/scrollable.rs b/web/src/widget/scrollable.rs
index 10f633de..ce0a10d4 100644
--- a/web/src/widget/scrollable.rs
+++ b/web/src/widget/scrollable.rs
@@ -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