diff --git a/PKHeX.WinForms/Util/WinFormsUtil.cs b/PKHeX.WinForms/Util/WinFormsUtil.cs index db3f56bda..adeea5e3b 100644 --- a/PKHeX.WinForms/Util/WinFormsUtil.cs +++ b/PKHeX.WinForms/Util/WinFormsUtil.cs @@ -27,7 +27,7 @@ internal static void CenterToForm(this Control child, Control? parent) return; int x = parent.Location.X + ((parent.Width - child.Width) / 2); int y = parent.Location.Y + ((parent.Height - child.Height) / 2); - child.Location = new Point(Math.Max(x, 0), Math.Max(y, 0)); + child.Location = new Point(x, y); } ///