From 4c2aa071a09df076fb92757034c941ed2e680ba7 Mon Sep 17 00:00:00 2001 From: Nick Senger Date: Sat, 8 Jul 2023 16:06:26 -0700 Subject: fix: request redraw in component overlay --- widget/src/lazy/component.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'widget/src') diff --git a/widget/src/lazy/component.rs b/widget/src/lazy/component.rs index f955d9dd..c7814966 100644 --- a/widget/src/lazy/component.rs +++ b/widget/src/lazy/component.rs @@ -624,6 +624,10 @@ where local_shell.revalidate_layout(|| shell.invalidate_layout()); + if let Some(redraw_request) = local_shell.redraw_request() { + shell.request_redraw(redraw_request); + } + if !local_messages.is_empty() { let mut inner = self.overlay.take().unwrap().0.take().unwrap().into_heads(); -- cgit