Merge branch 'master' into beacon

This commit is contained in:
Héctor Ramón Jiménez 2024-05-14 20:10:29 +02:00
commit a90b1fba89
No known key found for this signature in database
GPG key ID: 4C07CEC81AFA161F
14 changed files with 41 additions and 42 deletions

View file

@ -84,9 +84,10 @@ where
///
/// This is equivalent to:
/// ```rust,no_run
/// # use iced_widget::core::Length;
/// # use iced_widget::Container;
/// # fn container<A>(x: A) -> Container<'static, ()> { unreachable!() }
/// let centered = container("Centered!").center();
/// let centered = container("Centered!").center(Length::Fill);
/// ```
///
/// [`Container`]: crate::Container
@ -97,7 +98,7 @@ where
Theme: container::Catalog + 'a,
Renderer: core::Renderer,
{
container(content).fill().center()
container(content).center(Length::Fill)
}
/// Creates a new [`Column`] with the given children.