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.
2 parents adce9e0 + a12a92c commit e0185b8Copy full SHA for e0185b8
lazy/src/responsive.rs
@@ -178,7 +178,7 @@ where
178
let content_layout = state.layout(layout);
179
180
match content {
181
- Content::Pending(_) => false,
+ Content::Pending(_) => None,
182
Content::Ready(cache) => {
183
*cache = Some(
184
CacheBuilder {
@@ -190,14 +190,19 @@ where
190
.build(),
191
);
192
193
- cache.as_ref().unwrap().borrow_overlay().is_some()
+ cache
194
+ .as_ref()
195
+ .unwrap()
196
+ .borrow_overlay()
197
198
+ .map(|overlay| overlay.position())
199
}
200
201
};
202
- has_overlay.then(|| {
203
+ has_overlay.map(|position| {
204
overlay::Element::new(
- layout.position(),
205
+ position,
206
Box::new(Overlay { instance: self }),
207
)
208
})
0 commit comments