diff options
-rw-r--r-- | widget/src/container.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/widget/src/container.rs b/widget/src/container.rs index cf27bf96..92b782e8 100644 --- a/widget/src/container.rs +++ b/widget/src/container.rs @@ -138,12 +138,12 @@ where } /// 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) } /// 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) } |