diff --git a/examples/wrap/src/main.rs b/examples/wrap/src/main.rs index 2d1ee4dc..2f166d3b 100644 --- a/examples/wrap/src/main.rs +++ b/examples/wrap/src/main.rs @@ -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| { @@ -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() } } diff --git a/src/native/number_input.rs b/src/native/number_input.rs index e97377c2..7590a2bc 100644 --- a/src/native/number_input.rs +++ b/src/native/number_input.rs @@ -125,7 +125,7 @@ where on_change: Box::new(on_changed), style: ::Style::default(), font: Renderer::Font::default(), - width: Length::Fill, + width: Length::Shrink, } }