summaryrefslogtreecommitdiffstats
path: root/native/src/widget/column.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2021-09-20 15:54:19 +0700
committerLibravatar GitHub <noreply@github.com>2021-09-20 15:54:19 +0700
commit35c4ad6dd950fa91d181f4d3253fcb486bcf1b11 (patch)
tree8420a91cd319a63b1ed257a6334453a1a673bdfb /native/src/widget/column.rs
parent456a3f15e4226cc781a8825bddaaf066476d4351 (diff)
parenta0ad3996225601aaa1ebe051cba115374b55c80e (diff)
downloadiced-35c4ad6dd950fa91d181f4d3253fcb486bcf1b11.tar.gz
iced-35c4ad6dd950fa91d181f4d3253fcb486bcf1b11.tar.bz2
iced-35c4ad6dd950fa91d181f4d3253fcb486bcf1b11.zip
Merge pull request #1044 from tarkah/feature/align-fill-variant
Add Align::Fill variant
Diffstat (limited to 'native/src/widget/column.rs')
-rw-r--r--native/src/widget/column.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/native/src/widget/column.rs b/native/src/widget/column.rs
index 52a2e80c..30cf0781 100644
--- a/native/src/widget/column.rs
+++ b/native/src/widget/column.rs
@@ -5,7 +5,7 @@ use crate::event::{self, Event};
use crate::layout;
use crate::overlay;
use crate::{
- Align, Clipboard, Element, Hasher, Layout, Length, Padding, Point,
+ Alignment, Clipboard, Element, Hasher, Layout, Length, Padding, Point,
Rectangle, Widget,
};
@@ -20,7 +20,7 @@ pub struct Column<'a, Message, Renderer> {
height: Length,
max_width: u32,
max_height: u32,
- align_items: Align,
+ align_items: Alignment,
children: Vec<Element<'a, Message, Renderer>>,
}
@@ -41,7 +41,7 @@ impl<'a, Message, Renderer> Column<'a, Message, Renderer> {
height: Length::Shrink,
max_width: u32::MAX,
max_height: u32::MAX,
- align_items: Align::Start,
+ align_items: Alignment::Start,
children,
}
}
@@ -87,7 +87,7 @@ impl<'a, Message, Renderer> Column<'a, Message, Renderer> {
}
/// Sets the horizontal alignment of the contents of the [`Column`] .
- pub fn align_items(mut self, align: Align) -> Self {
+ pub fn align_items(mut self, align: Alignment) -> Self {
self.align_items = align;
self
}