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.rsindex 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,