From 85e92d9e2263cc8f260ab22c1f7122b0ca51d507 Mon Sep 17 00:00:00 2001 From: Nick Senger Date: Fri, 24 Dec 2021 11:10:57 -0800 Subject: [PATCH] fix: nested component layout invalidation --- lazy/src/component.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lazy/src/component.rs b/lazy/src/component.rs index 787adc109c..fd3f6ff7b6 100644 --- a/lazy/src/component.rs +++ b/lazy/src/component.rs @@ -149,6 +149,8 @@ where ) }); + local_shell.with_invalid_layout(|| shell.invalidate_layout()); + if !local_messages.is_empty() { let mut component = self .state @@ -373,6 +375,8 @@ where }) .unwrap_or_else(|| iced_native::event::Status::Ignored); + local_shell.with_invalid_layout(|| shell.invalidate_layout()); + if !local_messages.is_empty() { let mut component = self.instance.state.take().unwrap().into_heads().component;