Merge pull request #1638 from tarkah/fix/responsive-overlay-layout

Fix Responsive overlay placement bug
This commit is contained in:
Héctor Ramón 2023-01-05 18:12:57 +01:00 committed by GitHub
commit 2e5eebd0ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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