Fix controllerconfig display issue on mono

- closes #4376

Yeah I have no idea why or what
This commit is contained in:
Morilli 2025-06-28 19:21:19 +02:00
parent 815bf95d24
commit 4eec7acaab
1 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,8 @@ using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using BizHawk.Common;
namespace BizHawk.WinForms.Controls
{
/// <inheritdoc cref="Docs.SingleRowOrColFLP"/>
@ -31,7 +33,8 @@ namespace BizHawk.WinForms.Controls
{
base.AutoSize = true;
base.AutoSizeMode = AutoSizeMode.GrowAndShrink;
base.MinimumSize = TinySize;
// for some reason this breaks stuff on mono, see #4376
if (!OSTailoredCode.IsUnixHost) base.MinimumSize = TinySize;
base.WrapContents = false;
}
}