Make layout bounds explicit in UserInterface

This commit is contained in:
Héctor Ramón Jiménez 2020-01-10 03:10:58 +01:00
parent e45497dfd6
commit e6aa25a103
4 changed files with 65 additions and 45 deletions

View file

@ -445,8 +445,9 @@ impl iced_native::Renderer for Renderer {
fn layout<'a, Message>(
&mut self,
element: &iced_native::Element<'a, Message, Self>,
limits: &iced_native::layout::Limits,
) -> iced_native::layout::Node {
let node = element.layout(self, &iced_native::layout::Limits::NONE);
let node = element.layout(self, limits);
self.text_pipeline.clear_measurement_cache();