This commit is contained in:
Serge
2024-01-06 19:51:18 +01:00
parent 3785454200
commit 2be3b831ef
2 changed files with 12 additions and 1 deletions

View File

@@ -634,7 +634,17 @@ namespace GHelper
{
if (Height > Program.settingsForm.Height)
{
Top = Program.settingsForm.Top + Program.settingsForm.Height - Height;
var top = Program.settingsForm.Top + Program.settingsForm.Height - Height;
if (top < 0)
{
MaximumSize = new Size(Width, Program.settingsForm.Height);
Top = Program.settingsForm.Top;
} else
{
Top = top;
}
}
else
{