We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3744ec commit c5dbfb2Copy full SHA for c5dbfb2
lazy/src/component.rs
@@ -263,14 +263,15 @@ where
263
.build(),
264
);
265
266
- cache.as_ref().unwrap().borrow_overlay().is_some()
+ cache
267
+ .as_ref()
268
+ .unwrap()
269
+ .borrow_overlay()
270
+ .map(|overlay| overlay.position())
271
});
272
- has_overlay.then(|| {
- overlay::Element::new(
- layout.position(),
- Box::new(Overlay { instance: self }),
273
- )
+ has_overlay.map(|pos| {
274
+ overlay::Element::new(pos, Box::new(Overlay { instance: self }))
275
})
276
}
277
0 commit comments