summaryrefslogtreecommitdiffstats
path: root/lazy
diff options
context:
space:
mode:
Diffstat (limited to 'lazy')
-rw-r--r--lazy/src/component.rs11
1 files changed, 8 insertions, 3 deletions
diff --git a/lazy/src/component.rs b/lazy/src/component.rs
index 2b729045..00c27989 100644
--- a/lazy/src/component.rs
+++ b/lazy/src/component.rs
@@ -263,12 +263,17 @@ where
.build(),
);
- cache.as_ref().unwrap().borrow_overlay().is_some()
+ cache
+ .as_ref()
+ .unwrap()
+ .borrow_overlay()
+ .as_ref()
+ .map(|overlay| overlay.position())
});
- has_overlay.then(|| {
+ has_overlay.map(|position| {
overlay::Element::new(
- layout.position(),
+ position,
Box::new(Overlay { instance: self }),
)
})