Merge pull request #1169 from nicksenger/fix/nested-component-layout-invalidation

fix: nested component layout invalidation
This commit is contained in:
Héctor Ramón 2021-12-27 22:10:42 +07:00 committed by GitHub
commit 5466d6a11d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;