Fix custom widget example.
This commit is contained in:
parent
b72bd0b2b5
commit
ebe0d4f47e
1 changed files with 7 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue