diff options
author | 2024-02-19 09:53:45 +0100 | |
---|---|---|
committer | 2024-02-19 09:53:45 +0100 | |
commit | 49b3a714cc718731d3b09e9711bf4ec769a78109 (patch) | |
tree | 550f085c047b4a6d3df46a77c9748342220e0738 | |
parent | e77a6add8ae7dcded0bdecc72f3cdf455f30e79f (diff) | |
parent | 4557014f155a4e5ffb8c1a590aff6c1e7f55ff1f (diff) | |
download | iced-49b3a714cc718731d3b09e9711bf4ec769a78109.tar.gz iced-49b3a714cc718731d3b09e9711bf4ec769a78109.tar.bz2 iced-49b3a714cc718731d3b09e9711bf4ec769a78109.zip |
Merge pull request #2265 from rizzen-yazston/master
Fixed horizontal_space() and vertical_space() helper functions.
-rw-r--r-- | CHANGELOG.md | 2 | ||||
-rw-r--r-- | widget/src/helpers.rs | 10 |
2 files changed, 8 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 348d0201..a69939c7 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 diff --git a/widget/src/helpers.rs b/widget/src/helpers.rs index 3f2e56cd..71b0579d 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) } |