Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix Bounds::contains (#44711)
localcca698f1bf63b9
diff --git a/crates/gpui/src/geometry.rs b/crates/gpui/src/geometry.rsindex 4daec6d1536..f466624dfb9 100644--- a/crates/gpui/src/geometry.rs+++ b/crates/gpui/src/geometry.rs@@ -1416,9 +1416,9 @@ where/// ```pub fn contains(&self, point: &Point<T>) -> bool {point.x >= self.origin.x- && point.x <= self.origin.x.clone() + self.size.width.clone()+ && point.x < self.origin.x.clone() + self.size.width.clone()&& point.y >= self.origin.y- && point.y <= self.origin.y.clone() + self.size.height.clone()+ && point.y < self.origin.y.clone() + self.size.height.clone()}/// Checks if this bounds is completely contained within another bounds.