diff options
author | 2021-12-27 22:10:42 +0700 | |
---|---|---|
committer | 2021-12-27 22:10:42 +0700 | |
commit | 5466d6a11d0a4bee01e954b7c727b3fd67cea02a (patch) | |
tree | be766b5dd89b013cb6a1f014fe4d2845985c2a62 /lazy/src | |
parent | d19858bce8f4e425837d55c9bda44c258b2dd176 (diff) | |
parent | 85e92d9e2263cc8f260ab22c1f7122b0ca51d507 (diff) | |
download | iced-5466d6a11d0a4bee01e954b7c727b3fd67cea02a.tar.gz iced-5466d6a11d0a4bee01e954b7c727b3fd67cea02a.tar.bz2 iced-5466d6a11d0a4bee01e954b7c727b3fd67cea02a.zip |
Merge pull request #1169 from nicksenger/fix/nested-component-layout-invalidation
fix: nested component layout invalidation
Diffstat (limited to 'lazy/src')
-rw-r--r-- | lazy/src/component.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lazy/src/component.rs b/lazy/src/component.rs index 787adc10..fd3f6ff7 100644 --- a/lazy/src/component.rs +++ b/lazy/src/component.rs @@ -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; |