mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-09-28 15:21:37 +12:00
[BUG] Menulocation wrong when taskbar on top and dpi 200% and rare edge case (#138)
This commit is contained in:
parent
da00b14494
commit
a2f697a49d
1 changed files with 1 additions and 1 deletions
|
@ -371,7 +371,7 @@ namespace SystemTrayMenu.UserInterface
|
|||
y = menuPredecessor.Location.Y + menuPredecessor.dgv.Location.Y + distanceFromItemToDgvTop;
|
||||
|
||||
// Move vertically when out of bounds
|
||||
if (bounds.Height < y + Height)
|
||||
if (bounds.Y + bounds.Height < y + Height)
|
||||
{
|
||||
y = bounds.Y + bounds.Height - Height;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue