diff options
author | 2024-03-21 00:47:09 +0100 | |
---|---|---|
committer | 2024-03-21 00:47:09 +0100 | |
commit | 3013463baa71504488a20436beb3db87ecb66df0 (patch) | |
tree | 19b0085873add709d0b9c49542c74bac1ac31fc6 /widget/src/lazy/component.rs | |
parent | 01f38f05a21ca802027dc081b1bfd290528097e7 (diff) | |
parent | e812276677ca7c787ffb52a078e7a238227fb522 (diff) | |
download | iced-3013463baa71504488a20436beb3db87ecb66df0.tar.gz iced-3013463baa71504488a20436beb3db87ecb66df0.tar.bz2 iced-3013463baa71504488a20436beb3db87ecb66df0.zip |
Merge pull request #2345 from iced-rs/fix/responsive-layout-invalidation
Fix layout invalidation for `Responsive` widget
Diffstat (limited to 'widget/src/lazy/component.rs')
-rw-r--r-- | widget/src/lazy/component.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/widget/src/lazy/component.rs b/widget/src/lazy/component.rs index a512e0de..7ba71a02 100644 --- a/widget/src/lazy/component.rs +++ b/widget/src/lazy/component.rs @@ -478,12 +478,14 @@ where translation: Vector, ) -> Option<overlay::Element<'b, Message, Theme, Renderer>> { self.rebuild_element_if_necessary(); + let tree = tree .state .downcast_mut::<Rc<RefCell<Option<Tree>>>>() .borrow_mut() .take() .unwrap(); + let overlay = Overlay(Some( InnerBuilder { instance: self, |