Remove padding from Container for now
This commit is contained in:
parent
ceb02f4a36
commit
d4d14b68f4
5 changed files with 13 additions and 23 deletions
|
|
@ -8,7 +8,6 @@ pub struct Container<Element> {
|
|||
pub height: Length,
|
||||
pub max_width: u32,
|
||||
pub max_height: u32,
|
||||
pub padding: u16,
|
||||
pub horizontal_alignment: Align,
|
||||
pub vertical_alignment: Align,
|
||||
pub content: Element,
|
||||
|
|
@ -29,7 +28,6 @@ impl<Element> Container<Element> {
|
|||
max_height: u32::MAX,
|
||||
horizontal_alignment: Align::Start,
|
||||
vertical_alignment: Align::Start,
|
||||
padding: 0,
|
||||
content: content.into(),
|
||||
}
|
||||
}
|
||||
|
|
@ -66,14 +64,6 @@ impl<Element> Container<Element> {
|
|||
self
|
||||
}
|
||||
|
||||
/// Sets the padding of the [`Container`].
|
||||
///
|
||||
/// [`Container`]: struct.Container.html
|
||||
pub fn padding(mut self, units: u16) -> Self {
|
||||
self.padding = units;
|
||||
self
|
||||
}
|
||||
|
||||
/// Centers the contents in the horizontal axis of the [`Container`].
|
||||
///
|
||||
/// [`Container`]: struct.Container.html
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue