Implement Container widget
Remove `align_self` and `justify_content` methods
This commit is contained in:
parent
bfe19193b9
commit
ceb02f4a36
25 changed files with 310 additions and 205 deletions
|
|
@ -24,8 +24,6 @@ pub struct Image {
|
|||
|
||||
/// The height of the image
|
||||
pub height: Length,
|
||||
|
||||
pub align_self: Option<Align>,
|
||||
}
|
||||
|
||||
impl Image {
|
||||
|
|
@ -38,7 +36,6 @@ impl Image {
|
|||
clip: None,
|
||||
width: Length::Shrink,
|
||||
height: Length::Shrink,
|
||||
align_self: None,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -65,15 +62,4 @@ impl Image {
|
|||
self.height = height;
|
||||
self
|
||||
}
|
||||
|
||||
/// Sets the alignment of the [`Image`] itself.
|
||||
///
|
||||
/// This is useful if you want to override the default alignment given by
|
||||
/// the parent container.
|
||||
///
|
||||
/// [`Image`]: struct.Image.html
|
||||
pub fn align_self(mut self, align: Align) -> Self {
|
||||
self.align_self = Some(align);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue