Make Row, Column, and Checkbox shrink by default
This commit is contained in:
parent
74d01a6957
commit
2ff0e48142
17 changed files with 42 additions and 54 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue