Fix inconsistent align_* methods in Container
This commit is contained in:
parent
76737351ea
commit
915c926c28
1 changed files with 2 additions and 2 deletions
|
|
@ -138,12 +138,12 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Aligns the contents of the [`Container`] to the top.
|
/// Aligns the contents of the [`Container`] to the top.
|
||||||
pub fn align_top(self, height: Length) -> Self {
|
pub fn align_top(self, height: impl Into<Length>) -> Self {
|
||||||
self.height(height).align_y(alignment::Vertical::Top)
|
self.height(height).align_y(alignment::Vertical::Top)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Aligns the contents of the [`Container`] to the bottom.
|
/// Aligns the contents of the [`Container`] to the bottom.
|
||||||
pub fn align_bottom(self, height: Length) -> Self {
|
pub fn align_bottom(self, height: impl Into<Length>) -> Self {
|
||||||
self.height(height).align_y(alignment::Vertical::Bottom)
|
self.height(height).align_y(alignment::Vertical::Bottom)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue