diff options
author | 2019-11-11 05:26:08 +0100 | |
---|---|---|
committer | 2019-11-11 05:26:08 +0100 | |
commit | ceb02f4a36769c488c2525db2fb73f092a6c2706 (patch) | |
tree | d7a43c6b9444fb3079501e49ca1f80e31f1b4740 /native/src/widget/column.rs | |
parent | bfe19193b95e9d1be0694bbc6a96e20a9aefdc09 (diff) | |
download | iced-ceb02f4a36769c488c2525db2fb73f092a6c2706.tar.gz iced-ceb02f4a36769c488c2525db2fb73f092a6c2706.tar.bz2 iced-ceb02f4a36769c488c2525db2fb73f092a6c2706.zip |
Implement `Container` widget
Remove `align_self` and `justify_content` methods
Diffstat (limited to '')
-rw-r--r-- | native/src/widget/column.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/native/src/widget/column.rs b/native/src/widget/column.rs index ed8a2b89..7e7156a0 100644 --- a/native/src/widget/column.rs +++ b/native/src/widget/column.rs @@ -1,8 +1,6 @@ use std::hash::Hash; -use crate::{ - layout, Element, Event, Hasher, Layout, Length, Point, Size, Widget, -}; +use crate::{layout, Element, Event, Hasher, Layout, Length, Point, Widget}; /// A container that distributes its contents vertically. pub type Column<'a, Message, Renderer> = @@ -34,6 +32,7 @@ where &limits, self.padding as f32, self.spacing as f32, + self.align_items, &self.children, ) } @@ -74,9 +73,7 @@ where self.height.hash(state); self.max_width.hash(state); self.max_height.hash(state); - self.align_self.hash(state); self.align_items.hash(state); - self.justify_content.hash(state); self.spacing.hash(state); for child in &self.children { |