From fa36adbf1f1e683ceed2337960e718458c4128f1 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Tue, 12 Dec 2023 21:14:48 -0700 Subject: [PATCH] Fix typo in overlay positioning code --- crates/gpui2/src/elements/overlay.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/gpui2/src/elements/overlay.rs b/crates/gpui2/src/elements/overlay.rs index 7d4b90963760abb1ad9df260ad418fba47819bb4..fdd7858017d7c40fc9a69c56cd67855afe0da6ac 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); }