Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Revert "Round tooltip co-ordinates (#3836)" (#3853)
Marshall Bowersd637657a992f
diff --git a/crates/gpui2/src/elements/overlay.rs b/crates/gpui2/src/elements/overlay.rsindex be0a9356eb5..69fe1201429 100644--- a/crates/gpui2/src/elements/overlay.rs+++ b/crates/gpui2/src/elements/overlay.rs@@ -149,8 +149,7 @@ impl Element for Overlay {desired.origin.y = limits.origin.y;}- let offset = point(desired.origin.x.round(), desired.origin.y.round());- cx.with_absolute_element_offset(offset, |cx| {+ cx.with_element_offset(desired.origin - bounds.origin, |cx| {cx.break_content_mask(|cx| {for child in &mut self.children {child.paint(cx);