diff options
author | 2021-12-24 11:10:57 -0800 | |
---|---|---|
committer | 2021-12-24 11:14:30 -0800 | |
commit | 85e92d9e2263cc8f260ab22c1f7122b0ca51d507 (patch) | |
tree | be766b5dd89b013cb6a1f014fe4d2845985c2a62 /lazy | |
parent | d19858bce8f4e425837d55c9bda44c258b2dd176 (diff) | |
download | iced-85e92d9e2263cc8f260ab22c1f7122b0ca51d507.tar.gz iced-85e92d9e2263cc8f260ab22c1f7122b0ca51d507.tar.bz2 iced-85e92d9e2263cc8f260ab22c1f7122b0ca51d507.zip |
fix: nested component layout invalidation
Diffstat (limited to 'lazy')
-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; |