Fix shadowed variable
Layout passed into the overlay was accidentally shadowed by the content's layout. So instead of offsetting by the proper layout, the content layout was used instead.
This commit is contained in:
parent
43374f1f4e
commit
c885f56748
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue