summaryrefslogtreecommitdiffstats
path: root/widget/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2023-07-09 22:33:02 +0200
committerLibravatar GitHub <noreply@github.com>2023-07-09 22:33:02 +0200
commit63b2dc367e5c8b78255acea6269dfd173a26e36c (patch)
tree9b1303e19726e0ffa4e2c4ff8de2f328c6f807a7 /widget/src
parentfb512c3b70fbec6cc63298626d714ef818560519 (diff)
parent4c2aa071a09df076fb92757034c941ed2e680ba7 (diff)
downloadiced-63b2dc367e5c8b78255acea6269dfd173a26e36c.tar.gz
iced-63b2dc367e5c8b78255acea6269dfd173a26e36c.tar.bz2
iced-63b2dc367e5c8b78255acea6269dfd173a26e36c.zip
Merge pull request #1949 from nicksenger/fix/component-overlay-redraw
Forward redraw requests in component overlay
Diffstat (limited to 'widget/src')
-rw-r--r--widget/src/lazy/component.rs4
1 files changed, 4 insertions, 0 deletions
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();