Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix typo in overlay positioning code
Conrad Irwinfa36adbf1f1e
diff --git a/crates/gpui2/src/elements/overlay.rs b/crates/gpui2/src/elements/overlay.rsindex 7d4b9096376..fdd7858017d 100644--- a/crates/gpui2/src/elements/overlay.rs+++ b/crates/gpui2/src/elements/overlay.rs@@ -131,7 +131,7 @@ impl Element for Overlay {anchor_corner = anchor_corner.switch_axis(Axis::Horizontal);}- if bounds.top() < limits.top() || bounds.bottom() > limits.bottom() {+ if desired.top() < limits.top() || desired.bottom() > limits.bottom() {anchor_corner = anchor_corner.switch_axis(Axis::Vertical);}