Skip to content

Commit

Permalink
Merge pull request #1924 from iced-rs/fix/nested-overlay-translation
Browse files Browse the repository at this point in the history
Fix `translation` in `layout` of `Nested` overlay
  • Loading branch information
hecrj authored Jun 20, 2023
2 parents 8ae4e28 + 716bf09 commit b4ab444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/overlay/nested.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ where
where
Renderer: renderer::Renderer,
{
let translation = position - element.position();
let translation = position - Point::ORIGIN;

let node = element.layout(renderer, bounds, translation);

Expand Down

0 comments on commit b4ab444

Please sign in to comment.