Fix certain hovers being cut off

This commit is contained in:
Mikayla 2024-01-22 09:49:07 -08:00
parent 5b906e731d
commit 6419df82ee
No known key found for this signature in database
2 changed files with 41 additions and 6 deletions

View file

@ -497,6 +497,20 @@ where
}
}
impl<T> Add for Size<T>
where
T: Add<Output = T> + Clone + Default + Debug,
{
type Output = Size<T>;
fn add(self, rhs: Self) -> Self::Output {
Size {
width: self.width + rhs.width,
height: self.height + rhs.height,
}
}
}
impl<T, Rhs> Mul<Rhs> for Size<T>
where
T: Mul<Rhs, Output = Rhs> + Clone + Default + Debug,