Skip to content

Commit

Permalink
fix: bad menu position when no positioning item specified (#28276)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
  • Loading branch information
trop[bot] and nornagon committed Mar 19, 2021
1 parent 3ecccf2 commit 5f07df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/browser/api/electron_api_menu_mac.mm
Expand Up @@ -88,7 +88,7 @@
}

// If no preferred item is specified, try to show all of the menu items.
if (!positioning_item) {
if (!item) {
CGFloat windowBottom = CGRectGetMinY([view window].frame);
CGFloat lowestMenuPoint = windowBottom + position.y - [menu size].height;
CGFloat screenBottom = CGRectGetMinY([view window].screen.frame);
Expand Down

0 comments on commit 5f07df4

Please sign in to comment.