From 915c926c28f77ad7b401a17964408d27548543e6 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 12 Jul 2024 18:18:04 +0200 Subject: Fix inconsistent `align_*` methods in `Container` --- widget/src/container.rs | 4 ++-- 1 file 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) -> 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) -> Self { self.height(height).align_y(alignment::Vertical::Bottom) } -- cgit