Skip to content

Commit

Permalink
Tighten layout to avoid scrollbars
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed Jan 20, 2025
1 parent 36c7a85 commit 32f5637
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
27 changes: 14 additions & 13 deletions Bonsai.NuGet.Design/PackageDetails.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion Bonsai.NuGet.Design/PackageDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ protected override void ScaleControl(SizeF factor, BoundsSpecified specified)

protected override void OnResize(EventArgs e)
{
descriptionLabel.MaximumSize = new Size(Width, 0);
var preferredWidth = Width - SystemInformation.VerticalScrollBarWidth - detailsLayoutPanel.Margin.Right;
descriptionLabel.MaximumSize = new Size(preferredWidth, 0);
deprecationMetadataLabel.MaximumSize = new Size(preferredWidth, 0);
dependencyWarningLabel.MaximumSize = new Size(preferredWidth, 0);
tagsLabel.MaximumSize = new Size(preferredWidth, 0);
base.OnResize(e);
}

Expand Down

0 comments on commit 32f5637

Please sign in to comment.