[NTUSER] Fix popup menu position when menu item is half off the left side of the screen (#7108)

[CORE-16729](https://jira.reactos.org/browse/CORE-16729)
This commit is contained in:
Doug Lyons
2024-07-16 14:36:45 -05:00
committed by GitHub
parent 61286667f4
commit fb87f0f88c

View File

@@ -3001,8 +3001,8 @@ static BOOL FASTCALL MENU_ShowPopup(PWND pwndOwner, PMENU menu, UINT id, UINT fl
/* We are off the left side of the screen */
if (x < monitor->rcMonitor.left)
{
/* Re-orient the menu around the x-axis */
x += width;
/* Position menu at left edge of screen */
x = 0;
if (x < monitor->rcMonitor.left || x >= monitor->rcMonitor.right || bIsPopup)
x = monitor->rcMonitor.left;