diff options
author | 2023-11-21 14:41:22 +0100 | |
---|---|---|
committer | 2023-11-21 14:41:22 +0100 | |
commit | 25006b9c6f2ae909d86871d3a13631d518c07158 (patch) | |
tree | e4bf993c1073cde4c6a847e38f8165f6efcecb21 /widget/src/lazy/component.rs | |
parent | 7dd32f3be43c72e11dac5e07918e9ad6d36b6555 (diff) | |
download | iced-25006b9c6f2ae909d86871d3a13631d518c07158.tar.gz iced-25006b9c6f2ae909d86871d3a13631d518c07158.tar.bz2 iced-25006b9c6f2ae909d86871d3a13631d518c07158.zip |
Fix `Overlay` composition
Translations were not easily composable.
Diffstat (limited to 'widget/src/lazy/component.rs')
-rw-r--r-- | widget/src/lazy/component.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/widget/src/lazy/component.rs b/widget/src/lazy/component.rs index d454b72b..ad0c3823 100644 --- a/widget/src/lazy/component.rs +++ b/widget/src/lazy/component.rs @@ -577,9 +577,10 @@ where renderer: &Renderer, bounds: Size, position: Point, + translation: Vector, ) -> layout::Node { self.with_overlay_maybe(|overlay| { - overlay.layout(renderer, bounds, position) + overlay.layout(renderer, bounds, position, translation) }) .unwrap_or_default() } |