Fix typo in overlay positioning code

This commit is contained in:
Conrad Irwin 2023-12-12 21:14:48 -07:00
parent c9aa4a0e00
commit fa36adbf1f

View file

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