From 8e178cbb7bbe598a7c340a663c6cc973f7d3c12e Mon Sep 17 00:00:00 2001 From: F K <54195004+fredjk-gh@users.noreply.github.com> Date: Mon, 11 Mar 2024 07:09:47 -0400 Subject: [PATCH] [Core] Fix Notification positioning (#145) Fixed-position notification positioning was off. Finally figured out why... The XPos arg was used for Y position as well. A classic 1 character fix... --- ObservatoryCore/UI/NotificationForm.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ObservatoryCore/UI/NotificationForm.cs b/ObservatoryCore/UI/NotificationForm.cs index 5ed914e..cbb6545 100644 --- a/ObservatoryCore/UI/NotificationForm.cs +++ b/ObservatoryCore/UI/NotificationForm.cs @@ -129,7 +129,7 @@ namespace Observatory.UI { _defaultPosition = false; int xLocation = Convert.ToInt32(screenBounds.Width * x); - int yLocation = Convert.ToInt32(screenBounds.Height * x); + int yLocation = Convert.ToInt32(screenBounds.Height * y); Location = Point.Add(screenBounds.Location, new Size(xLocation, yLocation)); } else