summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-07-12 18:18:04 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-07-12 18:18:04 +0200
commit915c926c28f77ad7b401a17964408d27548543e6 (patch)
tree7871df62ff6dc93ccbfe41b12cc7866bf1729181
parent76737351ea9e116291112b7d576d9ed4f6bb5c2a (diff)
downloadiced-915c926c28f77ad7b401a17964408d27548543e6.tar.gz
iced-915c926c28f77ad7b401a17964408d27548543e6.tar.bz2
iced-915c926c28f77ad7b401a17964408d27548543e6.zip
Fix inconsistent `align_*` methods in `Container`
-rw-r--r--widget/src/container.rs4
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)
}