[BUG] Menulocation wrong when taskbar on top and dpi 200% and rare edge case (#138)

This commit is contained in:
Markus Hofknecht 2020-09-27 11:24:58 +02:00
parent da00b14494
commit a2f697a49d

View file

@ -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;
}