mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
parent
3fe12f1a7c
commit
cd88a97115
1 changed files with 8 additions and 1 deletions
|
@ -3023,7 +3023,14 @@ static BOOL FASTCALL MENU_ShowPopup(PWND pwndOwner, PMENU menu, UINT id, UINT fl
|
||||||
if ((y - height) < monitor->rcMonitor.top || y >= monitor->rcMonitor.bottom)
|
if ((y - height) < monitor->rcMonitor.top || y >= monitor->rcMonitor.bottom)
|
||||||
y = monitor->rcMonitor.bottom - height;
|
y = monitor->rcMonitor.bottom - height;
|
||||||
else
|
else
|
||||||
y -= height;
|
{
|
||||||
|
INT adjHgt = y + UserGetSystemMetrics(SM_CYMENUSIZE) +
|
||||||
|
2 * UserGetSystemMetrics(SM_CYDLGFRAME);
|
||||||
|
if (adjHgt >= monitor->rcMonitor.bottom)
|
||||||
|
y -= height;
|
||||||
|
else
|
||||||
|
y = adjHgt - height;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pExclude)
|
if (pExclude)
|
||||||
|
|
Loading…
Reference in a new issue