Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix hoverable elements moving on hover

Nathan Sobo5a9c76e08062
diff --git a/crates/gpui2/src/element.rs b/crates/gpui2/src/element.rs
index 68d1bcbdcf4..d893b6794ca 100644
--- a/crates/gpui2/src/element.rs
+++ b/crates/gpui2/src/element.rs
@@ -121,10 +121,9 @@ impl<V, E: Element<V>> AnyStatefulElement<V> for StatefulElement<V, E> {
Err(error) => ElementPhase::Error(error.to_string()),
},
ElementPhase::PostPaint {
- mut layout,
+ layout,
mut paint_state,
} => {
- layout.bounds = layout.bounds + parent_origin;
self.element.paint(view, &layout, &mut paint_state, cx);
ElementPhase::PostPaint {
layout,