diff options
author | 2024-05-13 17:56:02 +0200 | |
---|---|---|
committer | 2024-05-13 17:56:02 +0200 | |
commit | 05f69f495e9b52e9a7d7bada420558d4c4f6730c (patch) | |
tree | 8e1610757754831268ad0bbf5df9c8a4ea78144e /examples/pane_grid | |
parent | b30d34f728fdae65d4d2cb0afe2dcade9b4bb0dc (diff) | |
download | iced-05f69f495e9b52e9a7d7bada420558d4c4f6730c.tar.gz iced-05f69f495e9b52e9a7d7bada420558d4c4f6730c.tar.bz2 iced-05f69f495e9b52e9a7d7bada420558d4c4f6730c.zip |
Ask for explicit `Length` in `center_*` methods
Diffstat (limited to 'examples/pane_grid')
-rw-r--r-- | examples/pane_grid/src/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/pane_grid/src/main.rs b/examples/pane_grid/src/main.rs index e74ea1ee..0def1c2b 100644 --- a/examples/pane_grid/src/main.rs +++ b/examples/pane_grid/src/main.rs @@ -291,7 +291,10 @@ fn view_content<'a>( .spacing(10) .align_items(Alignment::Center); - container(scrollable(content)).center_y().padding(5).into() + container(scrollable(content)) + .center_y(Length::Fill) + .padding(5) + .into() } fn view_controls<'a>( |