diff options
author | 2020-02-14 21:41:35 +0100 | |
---|---|---|
committer | 2020-02-14 21:41:35 +0100 | |
commit | f4b8bce837513cdd06df3a3ceba86fd9256d3cc5 (patch) | |
tree | 5770a36750aac47a7bc656d809f6e217177c6a49 /examples/custom_widget | |
parent | 60b40fdc99647d77febaae1d483fc5642c4ba50d (diff) | |
download | iced-f4b8bce837513cdd06df3a3ceba86fd9256d3cc5.tar.gz iced-f4b8bce837513cdd06df3a3ceba86fd9256d3cc5.tar.bz2 iced-f4b8bce837513cdd06df3a3ceba86fd9256d3cc5.zip |
Revert changing the constructor and implement new method.
Diffstat (limited to 'examples/custom_widget')
-rw-r--r-- | examples/custom_widget/src/main.rs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/examples/custom_widget/src/main.rs b/examples/custom_widget/src/main.rs index 19615064..0a570745 100644 --- a/examples/custom_widget/src/main.rs +++ b/examples/custom_widget/src/main.rs @@ -39,13 +39,10 @@ mod circle { _renderer: &Renderer, _limits: &layout::Limits, ) -> layout::Node { - layout::Node::new( - Size::new( - f32::from(self.radius) * 2.0, - f32::from(self.radius) * 2.0, - ), - Size::ZERO, - ) + layout::Node::new(Size::new( + f32::from(self.radius) * 2.0, + f32::from(self.radius) * 2.0, + )) } fn hash_layout(&self, state: &mut Hasher) { |