diff options
Diffstat (limited to '')
-rw-r--r-- | examples/custom_widget/src/main.rs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/examples/custom_widget/src/main.rs b/examples/custom_widget/src/main.rs index 0a570745..19615064 100644 --- a/examples/custom_widget/src/main.rs +++ b/examples/custom_widget/src/main.rs @@ -39,10 +39,13 @@ 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, - )) + layout::Node::new( + Size::new( + f32::from(self.radius) * 2.0, + f32::from(self.radius) * 2.0, + ), + Size::ZERO, + ) } fn hash_layout(&self, state: &mut Hasher) { |