mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-26 22:10:21 +00:00
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:
parent
9c8031d847
commit
0ac5d57224
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue