summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--native/src/widget/column.rs11
-rw-r--r--native/src/widget/row.rs11
2 files changed, 2 insertions, 20 deletions
diff --git a/native/src/widget/column.rs b/native/src/widget/column.rs
index b38b1ef1..a7a6f242 100644
--- a/native/src/widget/column.rs
+++ b/native/src/widget/column.rs
@@ -30,16 +30,7 @@ impl<'a, Message, Renderer> Column<'a, Message, Renderer> {
///
/// [`Column`]: struct.Column.html
pub fn new() -> Self {
- Column {
- spacing: 0,
- padding: 0,
- width: Length::Shrink,
- height: Length::Shrink,
- max_width: u32::MAX,
- max_height: u32::MAX,
- align_items: Align::Start,
- children: Vec::new(),
- }
+ Self::with_children(Vec::new())
}
/// Creates a [`Column`] with the given elements.
diff --git a/native/src/widget/row.rs b/native/src/widget/row.rs
index b71d6480..c8812ea2 100644
--- a/native/src/widget/row.rs
+++ b/native/src/widget/row.rs
@@ -30,16 +30,7 @@ impl<'a, Message, Renderer> Row<'a, Message, Renderer> {
///
/// [`Row`]: struct.Row.html
pub fn new() -> Self {
- Row {
- spacing: 0,
- padding: 0,
- width: Length::Shrink,
- height: Length::Shrink,
- max_width: u32::MAX,
- max_height: u32::MAX,
- align_items: Align::Start,
- children: Vec::new(),
- }
+ Self::with_children(Vec::new())
}
/// Creates a [`Row`] with the given elements.