diff options
author | 2023-02-28 16:03:05 +0100 | |
---|---|---|
committer | 2023-02-28 16:03:05 +0100 | |
commit | 86b85d1436a44e82a9765f9d82b026faf26e22de (patch) | |
tree | a8947e78efcd14435e47f4b2db89d2c58e4471ec /examples | |
parent | 5f93437285c4451a8b5ffac1b3c9e1b91e8a5918 (diff) | |
parent | 9e815cb749f1bf6bce0232e870be266aca0c0742 (diff) | |
download | iced-86b85d1436a44e82a9765f9d82b026faf26e22de.tar.gz iced-86b85d1436a44e82a9765f9d82b026faf26e22de.tar.bz2 iced-86b85d1436a44e82a9765f9d82b026faf26e22de.zip |
Merge pull request #1735 from iced-rs/remove-alignment-fill
Remove `Fill` variant for `Alignment`
Diffstat (limited to 'examples')
-rw-r--r-- | examples/component/src/main.rs | 5 | ||||
-rw-r--r-- | examples/scrollable/src/main.rs | 1 | ||||
-rw-r--r-- | examples/websocket/src/main.rs | 4 |
3 files changed, 6 insertions, 4 deletions
diff --git a/examples/component/src/main.rs b/examples/component/src/main.rs index c407bb06..bbf549e7 100644 --- a/examples/component/src/main.rs +++ b/examples/component/src/main.rs @@ -127,7 +127,8 @@ mod numeric_input { .horizontal_alignment(alignment::Horizontal::Center) .vertical_alignment(alignment::Vertical::Center), ) - .width(50) + .width(40) + .height(40) .on_press(on_press) }; @@ -145,7 +146,7 @@ mod numeric_input { .padding(10), button("+", Event::IncrementPressed), ] - .align_items(Alignment::Fill) + .align_items(Alignment::Center) .spacing(10) .into() } diff --git a/examples/scrollable/src/main.rs b/examples/scrollable/src/main.rs index 7c858961..a3ade54f 100644 --- a/examples/scrollable/src/main.rs +++ b/examples/scrollable/src/main.rs @@ -254,7 +254,6 @@ impl Application for ScrollableDemo { scroll_to_beginning_button(), vertical_space(40), ] - .align_items(Alignment::Fill) .spacing(40), horizontal_space(1200), text("Horizontal - End!"), diff --git a/examples/websocket/src/main.rs b/examples/websocket/src/main.rs index ccd9c815..e617b8ce 100644 --- a/examples/websocket/src/main.rs +++ b/examples/websocket/src/main.rs @@ -146,7 +146,9 @@ impl Application for WebSocket { } } - row![input, button].spacing(10).align_items(Alignment::Fill) + row![input, button] + .spacing(10) + .align_items(Alignment::Center) }; column![message_log, new_message_input] |