diff options
Diffstat (limited to 'examples/custom_widget/src/main.rs')
| -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) { | 
