summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-01-30 03:41:03 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-01-30 03:41:03 +0100
commita3bfa0724c5e7fca72231f751619901c71007b13 (patch)
treecfed99a8ceb2ee7a742b9e7bc6633b55db3e6200
parentdc6f9f432abaed010ec946d5fdd1dcd70c3bd974 (diff)
downloadiced-a3bfa0724c5e7fca72231f751619901c71007b13.tar.gz
iced-a3bfa0724c5e7fca72231f751619901c71007b13.tar.bz2
iced-a3bfa0724c5e7fca72231f751619901c71007b13.zip
Fix widget-driven animations for `Component`
-rw-r--r--lazy/src/component.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/lazy/src/component.rs b/lazy/src/component.rs
index d8f21f8a..d3c52df5 100644
--- a/lazy/src/component.rs
+++ b/lazy/src/component.rs
@@ -227,6 +227,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 heads = self.state.take().unwrap().into_heads();