Skip to content

Commit

Permalink
Merge pull request #189 from ojji/wrap_example
Browse files Browse the repository at this point in the history
Wrap example is broken
  • Loading branch information
Andrew Wheeler(Genusis) authored Oct 12, 2023
2 parents 7b765d9 + 393a4bc commit 44c44cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions examples/wrap/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl Sandbox for RandStrings {
let RandStrings {
vbuttons, hbuttons, ..
} = self;
let vertcal = Container::new(
let vertical = Container::new(
vbuttons
.iter()
.fold(Wrap::new_vertical(), |wrap, button| {
Expand Down Expand Up @@ -175,6 +175,10 @@ impl Sandbox for RandStrings {
.height(iced::Length::Shrink)
.align_items(iced::Alignment::Center);

Row::new().push(ctrls).push(vertcal).push(horizontal).into()
Row::new()
.push(ctrls)
.push(vertical)
.push(horizontal)
.into()
}
}
2 changes: 1 addition & 1 deletion src/native/number_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ where
on_change: Box::new(on_changed),
style: <Renderer::Theme as number_input::StyleSheet>::Style::default(),
font: Renderer::Font::default(),
width: Length::Fill,
width: Length::Shrink,
}
}

Expand Down

0 comments on commit 44c44cf

Please sign in to comment.