mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user