Fix typo in overlay positioning code
This commit is contained in:
parent
c9aa4a0e00
commit
fa36adbf1f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue