Fix examples.
This commit is contained in:
parent
ebe0d4f47e
commit
60b40fdc99
2 changed files with 2 additions and 2 deletions
|
|
@ -84,7 +84,7 @@ mod bezier {
|
|||
.height(Length::Fill)
|
||||
.width(Length::Fill)
|
||||
.resolve(Size::ZERO);
|
||||
layout::Node::new(size)
|
||||
layout::Node::new(size, Size::ZERO)
|
||||
}
|
||||
|
||||
fn draw(
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ mod rainbow {
|
|||
) -> layout::Node {
|
||||
let size = limits.width(Length::Fill).resolve(Size::ZERO);
|
||||
|
||||
layout::Node::new(Size::new(size.width, size.width))
|
||||
layout::Node::new(Size::new(size.width, size.width), Size::ZERO)
|
||||
}
|
||||
|
||||
fn hash_layout(&self, _state: &mut Hasher) {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue