Merge pull request #1924 from iced-rs/fix/nested-overlay-translation

Fix `translation` in `layout` of `Nested` overlay
This commit is contained in:
Héctor Ramón 2023-06-21 01:57:10 +02:00 committed by GitHub
commit b4ab444b00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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