Skip to content

Commit

Permalink
Merge pull request #1169 from nicksenger/fix/nested-component-layout-…
Browse files Browse the repository at this point in the history
…invalidation

fix: nested component layout invalidation
  • Loading branch information
hecrj authored Dec 27, 2021
2 parents d19858b + 85e92d9 commit 5466d6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lazy/src/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ where
)
});

local_shell.with_invalid_layout(|| shell.invalidate_layout());

if !local_messages.is_empty() {
let mut component = self
.state
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 5466d6a

Please sign in to comment.