mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-09-29 16:51:18 +13: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;
|
y = menuPredecessor.Location.Y + menuPredecessor.dgv.Location.Y + distanceFromItemToDgvTop;
|
||||||
|
|
||||||
// Move vertically when out of bounds
|
// Move vertically when out of bounds
|
||||||
if (bounds.Height < y + Height)
|
if (bounds.Y + bounds.Height < y + Height)
|
||||||
{
|
{
|
||||||
y = bounds.Y + bounds.Height - Height;
|
y = bounds.Y + bounds.Height - Height;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue