diff options
author | 2023-01-30 05:26:51 +0100 | |
---|---|---|
committer | 2023-01-30 05:26:51 +0100 | |
commit | 8c753192f82989fec5b5b506f62a8b17bf41f55a (patch) | |
tree | c53742f5ce8d958e636b15d74a4781fc99e219be /lazy | |
parent | a28bc3eaf05d59ef35ae5c182fa68478356364fd (diff) | |
parent | a50cc32d09ddff1d061701074908c28d5c5509ba (diff) | |
download | iced-8c753192f82989fec5b5b506f62a8b17bf41f55a.tar.gz iced-8c753192f82989fec5b5b506f62a8b17bf41f55a.tar.bz2 iced-8c753192f82989fec5b5b506f62a8b17bf41f55a.zip |
Merge pull request #1686 from iced-rs/fix/overlay-group-position
Fix layout translation in `overlay::Group`
Diffstat (limited to '')
-rw-r--r-- | lazy/src/component.rs | 4 | ||||
-rw-r--r-- | lazy/src/lazy.rs | 4 | ||||
-rw-r--r-- | lazy/src/responsive.rs | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lazy/src/component.rs b/lazy/src/component.rs index d3c52df5..94263274 100644 --- a/lazy/src/component.rs +++ b/lazy/src/component.rs @@ -455,9 +455,9 @@ where position: Point, ) -> layout::Node { self.with_overlay_maybe(|overlay| { - let vector = position - overlay.position(); + let translation = position - overlay.position(); - overlay.layout(renderer, bounds).translate(vector) + overlay.layout(renderer, bounds, translation) }) .unwrap_or_default() } diff --git a/lazy/src/lazy.rs b/lazy/src/lazy.rs index 933def96..9795afa4 100644 --- a/lazy/src/lazy.rs +++ b/lazy/src/lazy.rs @@ -313,9 +313,9 @@ where position: Point, ) -> layout::Node { self.with_overlay_maybe(|overlay| { - let vector = position - overlay.position(); + let translation = position - overlay.position(); - overlay.layout(renderer, bounds).translate(vector) + overlay.layout(renderer, bounds, translation) }) .unwrap_or_default() } diff --git a/lazy/src/responsive.rs b/lazy/src/responsive.rs index 52badda2..e399e7b0 100644 --- a/lazy/src/responsive.rs +++ b/lazy/src/responsive.rs @@ -356,9 +356,9 @@ where position: Point, ) -> layout::Node { self.with_overlay_maybe(|overlay| { - let vector = position - overlay.position(); + let translation = position - overlay.position(); - overlay.layout(renderer, bounds).translate(vector) + overlay.layout(renderer, bounds, translation) }) .unwrap_or_default() } |