summaryrefslogtreecommitdiffstats
path: root/lazy
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-01-30 05:01:28 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-01-30 05:11:59 +0100
commita50cc32d09ddff1d061701074908c28d5c5509ba (patch)
treec53742f5ce8d958e636b15d74a4781fc99e219be /lazy
parenta28bc3eaf05d59ef35ae5c182fa68478356364fd (diff)
downloadiced-a50cc32d09ddff1d061701074908c28d5c5509ba.tar.gz
iced-a50cc32d09ddff1d061701074908c28d5c5509ba.tar.bz2
iced-a50cc32d09ddff1d061701074908c28d5c5509ba.zip
Fix layout translation in `overlay::Group`
This bug produced improper positioning of overlays of elements inside a `Scrollable`.
Diffstat (limited to 'lazy')
-rw-r--r--lazy/src/component.rs4
-rw-r--r--lazy/src/lazy.rs4
-rw-r--r--lazy/src/responsive.rs4
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()
}