Fix typo in overlay positioning code

Conrad Irwin created

Change summary

crates/gpui2/src/elements/overlay.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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);
                 }