diff options
author | 2020-10-02 21:53:40 -0400 | |
---|---|---|
committer | 2020-10-02 21:53:40 -0400 | |
commit | 7c242772108b5be6812443a021af37127686e52e (patch) | |
tree | d56a41f2fbe913c58ca3fb8d8d6d029f3dba583f /native | |
parent | 8346209c3706002573f990d5b7ab6b645d0b13a6 (diff) | |
download | iced-7c242772108b5be6812443a021af37127686e52e.tar.gz iced-7c242772108b5be6812443a021af37127686e52e.tar.bz2 iced-7c242772108b5be6812443a021af37127686e52e.zip |
Document better
Diffstat (limited to 'native')
-rw-r--r-- | native/src/widget/column.rs | 5 | ||||
-rw-r--r-- | native/src/widget/row.rs | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/native/src/widget/column.rs b/native/src/widget/column.rs index 17fa7fd6..a003c584 100644 --- a/native/src/widget/column.rs +++ b/native/src/widget/column.rs @@ -10,9 +10,10 @@ use std::u32; /// A container that distributes its contents vertically. /// -/// A [`Column`] will try to fill the horizontal space of its container. +/// A [`Column`] will not fill the horizontal space of its container. (set to [`Length::shrink`] by defualt) /// /// [`Column`]: struct.Column.html +/// [`Length::shrink`]: ../../enum.Length.html #[allow(missing_debug_implementations)] pub struct Column<'a, Message, Renderer> { spacing: u16, @@ -42,7 +43,7 @@ impl<'a, Message, Renderer> Column<'a, Message, Renderer> { Column { spacing: 0, padding: 0, - width: Length::Fill, + width: Length::Shrink, height: Length::Shrink, max_width: u32::MAX, max_height: u32::MAX, diff --git a/native/src/widget/row.rs b/native/src/widget/row.rs index 2b6db224..dd85a543 100644 --- a/native/src/widget/row.rs +++ b/native/src/widget/row.rs @@ -10,9 +10,10 @@ use std::u32; /// A container that distributes its contents horizontally. /// -/// A [`Row`] will try to fill the horizontal space of its container. +/// A [`Row`] will not fill the horizontal space of its container. (set to [`Length::shrink`] by defualt) /// /// [`Row`]: struct.Row.html +/// [`Length::shrink`]: ../../enum.Length.html #[allow(missing_debug_implementations)] pub struct Row<'a, Message, Renderer> { spacing: u16, |