From 2ff0e48142c302cb93130164d083589bb2ac4979 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 30 Dec 2019 20:54:04 +0100 Subject: Make `Row`, `Column`, and `Checkbox` shrink by default --- examples/custom_widget.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'examples/custom_widget.rs') diff --git a/examples/custom_widget.rs b/examples/custom_widget.rs index cf2f7792..c0038cd9 100644 --- a/examples/custom_widget.rs +++ b/examples/custom_widget.rs @@ -124,10 +124,7 @@ impl Sandbox for Example { .max_width(500) .align_items(Align::Center) .push(Circle::new(self.radius)) - .push( - Text::new(format!("Radius: {}", self.radius.to_string())) - .width(Length::Shrink), - ) + .push(Text::new(format!("Radius: {}", self.radius.to_string()))) .push(Slider::new( &mut self.slider, 1.0..=100.0, -- cgit