Skip to content

Commit

Permalink
Restrict description size for mono compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed Jan 17, 2025
1 parent 88720a3 commit 2bf8c96
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Bonsai.NuGet.Design/PackageDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
base.ScaleControl(factor, specified);
}

protected override void OnResize(EventArgs e)
{
descriptionLabel.MaximumSize = new Size(Width, 0);
base.OnResize(e);
}

public void SetPackage(PackageViewItem item)
{
SuspendLayout();
Expand Down

0 comments on commit 2bf8c96

Please sign in to comment.