Increase program size if required for different DPI

Closes #2439
This commit is contained in:
Kurt 2019-11-16 21:03:24 -08:00
parent f20f6cd4bb
commit 08aef9abc0

View File

@ -964,6 +964,13 @@ private void ToggleViewReset()
Box.HorizontallyCenter(Tab_Box);
foreach (var pb in Box.SlotPictureBoxes)
pb.ContextMenuStrip = menu.mnuVSD;
var grid = Box.BoxPokeGrid;
var height = grid.Height + grid.Location.Y + Box.Location.Y; // needed height
var required = height + 16;
var allowed = Tab_Box.Height;
if (required > allowed)
FindForm().Height += required - allowed;
}
}
if (SAV.HasParty)