summaryrefslogtreecommitdiffstats
path: root/core
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 /core
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 '')
-rw-r--r--core/src/vector.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/vector.rs b/core/src/vector.rs
index b550869c..1380c3b3 100644
--- a/core/src/vector.rs
+++ b/core/src/vector.rs
@@ -15,6 +15,11 @@ impl<T> Vector<T> {
}
}
+impl Vector {
+ /// The zero [`Vector`].
+ pub const ZERO: Self = Self::new(0.0, 0.0);
+}
+
impl<T> std::ops::Add for Vector<T>
where
T: std::ops::Add<Output = T>,