Make layout bounds explicit in UserInterface
This commit is contained in:
parent
e45497dfd6
commit
e6aa25a103
4 changed files with 65 additions and 45 deletions
|
|
@ -52,7 +52,8 @@ pub trait Renderer: Sized {
|
|||
fn layout<'a, Message>(
|
||||
&mut self,
|
||||
element: &Element<'a, Message, Self>,
|
||||
limits: &layout::Limits,
|
||||
) -> layout::Node {
|
||||
element.layout(self, &layout::Limits::NONE)
|
||||
element.layout(self, limits)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue