Skip to content

Commit

Permalink
Document better
Browse files Browse the repository at this point in the history
  • Loading branch information
MonliH committed Oct 3, 2020
1 parent 8346209 commit 7c24277
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions native/src/widget/column.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion native/src/widget/row.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7c24277

Please sign in to comment.