Skip to content

Commit

Permalink
updated wrap example
Browse files Browse the repository at this point in the history
  • Loading branch information
genusistimelord committed Feb 16, 2024
1 parent 387517a commit 9c407bb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
18 changes: 18 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,24 @@
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'multiple_modals'",
"cargo": {
"args": [
"build",
"--bin=multiple_modals",
"--package=multiple_modals"
],
"filter": {
"name": "multiple_modals",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ members = [
"examples/tabs",
"examples/time_picker",
"examples/sliderbar",
#"examples/wrap",
"examples/wrap",
"examples/selection_list",
"examples/split",
#"examples/split_scroller",
"examples/split_scroller",
"examples/context_menu",
"examples/spinner",
"examples/cupertino/cupertino_button",
Expand Down
2 changes: 1 addition & 1 deletion examples/wrap/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ impl Application for RandStrings {
.width(iced::Length::FillPortion(5));
let align_picklist = PickList::new(
vec![WrapAlign::Start, WrapAlign::Center, WrapAlign::End],
Some(state.align.into()),
Some(Into::<WrapAlign>::into(state.align)),
Message::ChangeAlign,
);
let spacing_input =
Expand Down

0 comments on commit 9c407bb

Please sign in to comment.