From a2f697a49d7d641b80b83b60c5717e76232c8c2f Mon Sep 17 00:00:00 2001 From: Markus Hofknecht Date: Sun, 27 Sep 2020 11:24:58 +0200 Subject: [PATCH] [BUG] Menulocation wrong when taskbar on top and dpi 200% and rare edge case (#138) --- UserInterface/Menu.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UserInterface/Menu.cs b/UserInterface/Menu.cs index 405f534..55854ef 100644 --- a/UserInterface/Menu.cs +++ b/UserInterface/Menu.cs @@ -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; }