Fix tabs for bag pouches not showing on Linux/Mono

Passing a height of 0 lets the TabControl dissapear, making it
impossible to switch tabs between different pouches.

To fix this, use the same approach as for the width and pass the height
of the first icon.
This commit is contained in:
Philipp Joram 2017-01-29 14:10:54 +01:00
parent 9c8031d847
commit 0ac5d57224

View file

@ -51,7 +51,7 @@ namespace PKHeX.WinForms
private void initBags()
{
tabControl1.SizeMode = TabSizeMode.Fixed;
tabControl1.ItemSize = new Size(IL_Pouch.Images[0].Width + 4, 0);
tabControl1.ItemSize = new Size(IL_Pouch.Images[0].Width + 4, IL_Pouch.Images[0].Height + 4);
for (int i = 0; i < Pouches.Length; i++)
{
// Add Tab