Skip to content

Commit b4ab444

Browse files
authored
Merge pull request #1924 from iced-rs/fix/nested-overlay-translation
Fix `translation` in `layout` of `Nested` overlay
2 parents 8ae4e28 + 716bf09 commit b4ab444

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runtime/src/overlay/nested.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ where
4242
where
4343
Renderer: renderer::Renderer,
4444
{
45-
let translation = position - element.position();
45+
let translation = position - Point::ORIGIN;
4646

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

0 commit comments

Comments
 (0)