mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 13:38:19 +00:00
[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:
parent
61286667f4
commit
fb87f0f88c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue