diff options
author | 2025-01-24 15:55:24 +0100 | |
---|---|---|
committer | 2025-01-24 15:55:24 +0100 | |
commit | f8337b8da7ff6bcf876b54d1c7dac460d2e03747 (patch) | |
tree | 495d96fc62b23af7ce2622e87892ca823f1c61fc /examples/multi_window | |
parent | 75a6f32a5ef49bb8e6d16506d84b07822a33c41b (diff) | |
download | iced-f8337b8da7ff6bcf876b54d1c7dac460d2e03747.tar.gz iced-f8337b8da7ff6bcf876b54d1c7dac460d2e03747.tar.bz2 iced-f8337b8da7ff6bcf876b54d1c7dac460d2e03747.zip |
Add helper functions for alignment to `widget` module
Diffstat (limited to 'examples/multi_window')
-rw-r--r-- | examples/multi_window/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/multi_window/src/main.rs b/examples/multi_window/src/main.rs index b43a627a..f9021c8d 100644 --- a/examples/multi_window/src/main.rs +++ b/examples/multi_window/src/main.rs @@ -1,5 +1,5 @@ use iced::widget::{ - button, center, column, container, horizontal_space, scrollable, text, + button, center, center_x, column, horizontal_space, scrollable, text, text_input, }; use iced::window; @@ -193,6 +193,6 @@ impl Window { .align_x(Center), ); - container(content).center_x(200).into() + center_x(content).width(200).into() } } |