Skip to content

Commit

Permalink
When positioning a menu, include the vertical screen offset.
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsbers committed Feb 5, 2024
1 parent d441b93 commit 3d805c5
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 @@ -189,7 +189,7 @@ void YMenu::focusItem(int itemNo) {
if (ny + iy + ih > dy + dh)
ny = dy + dh - ih - iy;
else if (ny + iy < dy)
ny = -iy;
ny = dy - iy;
setPosition(x(), ny);
}
}
Expand Down

0 comments on commit 3d805c5

Please sign in to comment.