Merge pull request #1638 from tarkah/fix/responsive-overlay-layout
Fix Responsive overlay placement bug
This commit is contained in:
commit
2e5eebd0ec
1 changed files with 4 additions and 2 deletions
|
|
@ -280,12 +280,14 @@ where
|
||||||
);
|
);
|
||||||
|
|
||||||
let Content {
|
let Content {
|
||||||
element, layout, ..
|
element,
|
||||||
|
layout: content_layout,
|
||||||
|
..
|
||||||
} = content.deref_mut();
|
} = content.deref_mut();
|
||||||
|
|
||||||
let content_layout = Layout::with_offset(
|
let content_layout = Layout::with_offset(
|
||||||
layout.bounds().position() - Point::ORIGIN,
|
layout.bounds().position() - Point::ORIGIN,
|
||||||
layout,
|
content_layout,
|
||||||
);
|
);
|
||||||
|
|
||||||
element
|
element
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue