From a2e034cea66672a13bdfe6057c89e3ef4c58f164 Mon Sep 17 00:00:00 2001 From: Rizzen Yazston Date: Mon, 19 Feb 2024 09:55:04 +0200 Subject: [PATCH 1/2] Fix `horizontal_space` and `vertical_space` docs --- widget/src/helpers.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/widget/src/helpers.rs b/widget/src/helpers.rs index 3f2e56cd5d..71b0579d73 100644 --- a/widget/src/helpers.rs +++ b/widget/src/helpers.rs @@ -302,16 +302,18 @@ where ComboBox::new(state, placeholder, selection, on_selected) } -/// Creates a new horizontal [`Space`] with the given [`Length`]. +/// Creates a new [`Space`] widget that fills the available +/// horizontal space. /// -/// [`Space`]: crate::Space +/// This can be useful to separate widgets in a [`Row`]. pub fn horizontal_space() -> Space { Space::with_width(Length::Fill) } -/// Creates a new vertical [`Space`] with the given [`Length`]. +/// Creates a new [`Space`] widget that fills the available +/// vertical space. /// -/// [`Space`]: crate::Space +/// This can be useful to separate widgets in a [`Column`]. pub fn vertical_space() -> Space { Space::with_height(Length::Fill) } From 4557014f155a4e5ffb8c1a590aff6c1e7f55ff1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Mon, 19 Feb 2024 09:44:54 +0100 Subject: [PATCH 2/2] Update `CHANGELOG` --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 348d0201a0..a69939c7c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,10 +10,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Black images when using OpenGL backend in `iced_wgpu`. [#2259](https://github.com/iced-rs/iced/pull/2259) +- Documentation for `horizontal_space` and `vertical_space` helpers. [#2265](https://github.com/iced-rs/iced/pull/2265) Many thanks to... - @PolyMeilex +- @rizzen-yazston ## [0.12.0] - 2024-02-15 ### Added