summaryrefslogtreecommitdiffstats
path: root/examples/custom_widget.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-09 06:04:05 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-09 06:04:05 +0100
commit5e018965ee99c44fe50f9be8f7b69cd486d183be (patch)
tree65862c87a2835e71ad074e143efbbb6d665a535b /examples/custom_widget.rs
parent89b1ac6eac03bec9e2acb9b4d59da86e59d26153 (diff)
parent6699329d3f91c5b9d8e8e55ad88de24bd3894955 (diff)
downloadiced-5e018965ee99c44fe50f9be8f7b69cd486d183be.tar.gz
iced-5e018965ee99c44fe50f9be8f7b69cd486d183be.tar.bz2
iced-5e018965ee99c44fe50f9be8f7b69cd486d183be.zip
Merge branch 'master' into feature/custom-styling
Diffstat (limited to '')
-rw-r--r--examples/custom_widget.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/custom_widget.rs b/examples/custom_widget.rs
index 1f51ee54..0a570745 100644
--- a/examples/custom_widget.rs
+++ b/examples/custom_widget.rs
@@ -127,10 +127,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,