summaryrefslogtreecommitdiffstats
path: root/lazy
diff options
context:
space:
mode:
Diffstat (limited to 'lazy')
-rw-r--r--lazy/src/responsive.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/lazy/src/responsive.rs b/lazy/src/responsive.rs
index 945c935a..52badda2 100644
--- a/lazy/src/responsive.rs
+++ b/lazy/src/responsive.rs
@@ -280,12 +280,14 @@ where
);
let Content {
- element, layout, ..
+ element,
+ layout: content_layout,
+ ..
} = content.deref_mut();
let content_layout = Layout::with_offset(
layout.bounds().position() - Point::ORIGIN,
- layout,
+ content_layout,
);
element