Fix bug in SizeInfo::contains_point
Accidentally broke it when refactoring.
This commit is contained in:
parent
1d949d72d4
commit
cbabef36ed
|
@ -571,9 +571,9 @@ impl SizeInfo {
|
|||
}
|
||||
|
||||
fn contains_point(&self, x: usize, y:usize) -> bool {
|
||||
x <= (self.width - self.padding_x) as usize ||
|
||||
x >= self.padding_x as usize ||
|
||||
y <= (self.height - self.padding_y) as usize ||
|
||||
x <= (self.width - self.padding_x) as usize &&
|
||||
x >= self.padding_x as usize &&
|
||||
y <= (self.height - self.padding_y) as usize &&
|
||||
y >= self.padding_y as usize
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue