fix: nested component layout invalidation

This commit is contained in:
Nick Senger 2021-12-24 11:10:57 -08:00
parent d19858bce8
commit 85e92d9e22
No known key found for this signature in database
GPG key ID: F905159224DB77D8

View file

@ -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;