Round tooltip co-ordinates (#3836)

There was a hypothesis that this would fix border rendering.

It doesn't :D; but it does at least mean that they are always
consistently
broken, so it may be easier to fix.
This commit is contained in:
Conrad Irwin 2024-01-02 15:06:19 -07:00 committed by GitHub
commit 09951208a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -149,7 +149,8 @@ impl Element for Overlay {
desired.origin.y = limits.origin.y;
}
cx.with_element_offset(desired.origin - bounds.origin, |cx| {
let offset = point(desired.origin.x.round(), desired.origin.y.round());
cx.with_absolute_element_offset(offset, |cx| {
cx.break_content_mask(|cx| {
for child in &mut self.children {
child.paint(cx);