summaryrefslogtreecommitdiffstats
path: root/runtime/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-06-21 01:43:25 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-06-21 01:43:25 +0200
commit716bf099233411b7c1f0bb8f8811f5d356992ef6 (patch)
treedc7ebb52538a8bda921a57e2650811a5617f9cfa /runtime/src
parent8ae4e28013ac2b4ae1c0a6d3b0672b59692e45d1 (diff)
downloadiced-716bf099233411b7c1f0bb8f8811f5d356992ef6.tar.gz
iced-716bf099233411b7c1f0bb8f8811f5d356992ef6.tar.bz2
iced-716bf099233411b7c1f0bb8f8811f5d356992ef6.zip
Fix `translation` in `layout` of `Nested` overlay
Diffstat (limited to 'runtime/src')
-rw-r--r--runtime/src/overlay/nested.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/src/overlay/nested.rs b/runtime/src/overlay/nested.rs
index cd258ab6..b729f769 100644
--- a/runtime/src/overlay/nested.rs
+++ b/runtime/src/overlay/nested.rs
@@ -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);