Skip to content

Commit

Permalink
Fix typo dx to dy in menu focusItem.
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsbers committed Feb 5, 2024
1 parent c55f3a3 commit d441b93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ymenu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ void YMenu::focusItem(int itemNo) {

int ny = y();
if (ny + iy + ih > dy + dh)
ny = dx + dh - ih - iy;
ny = dy + dh - ih - iy;
else if (ny + iy < dy)
ny = -iy;
setPosition(x(), ny);
Expand Down

0 comments on commit d441b93

Please sign in to comment.