Fix examples.
This commit is contained in:
parent
ebe0d4f47e
commit
60b40fdc99
@ -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…
x
Reference in New Issue
Block a user