Fix Bounds::contains (#44711)
Closes #11643 Release Notes: - Fixed double hover state on windows Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
This commit is contained in:
co-authored by
Kirill Bulatov
parent
636d11ebec
commit
a698f1bf63
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user