summaryrefslogtreecommitdiffstats
path: root/widget/src/helpers.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-02-15 02:08:22 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-02-15 02:08:22 +0100
commite8049af23dbf4988ff24b75b90104295f61098a2 (patch)
tree21840d4799c0645d9572af6d44c58bd7be117a39 /widget/src/helpers.rs
parent9dd20ead085ff3b9b4bd441b5e4938cf8e813f35 (diff)
downloadiced-e8049af23dbf4988ff24b75b90104295f61098a2.tar.gz
iced-e8049af23dbf4988ff24b75b90104295f61098a2.tar.bz2
iced-e8049af23dbf4988ff24b75b90104295f61098a2.zip
Make `horizontal_space` and `vertical_space` fill by default
Diffstat (limited to 'widget/src/helpers.rs')
-rw-r--r--widget/src/helpers.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/widget/src/helpers.rs b/widget/src/helpers.rs
index e9898d67..400fced5 100644
--- a/widget/src/helpers.rs
+++ b/widget/src/helpers.rs
@@ -305,15 +305,15 @@ where
/// Creates a new horizontal [`Space`] with the given [`Length`].
///
/// [`Space`]: crate::Space
-pub fn horizontal_space(width: impl Into<Length>) -> Space {
- Space::with_width(width)
+pub fn horizontal_space() -> Space {
+ Space::with_width(Length::Fill)
}
/// Creates a new vertical [`Space`] with the given [`Length`].
///
/// [`Space`]: crate::Space
-pub fn vertical_space(height: impl Into<Length>) -> Space {
- Space::with_height(height)
+pub fn vertical_space() -> Space {
+ Space::with_height(Length::Fill)
}
/// Creates a horizontal [`Rule`] with the given height.