mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2025-01-31 21:11:39 +01:00
Fix "About" window height (maybe)
This commit is contained in:
parent
2c7f01a1ae
commit
2640a99a12
@ -39,6 +39,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
linkLabelGitBuildHash.Left = labelProduct.Left + labelProduct.Width - 5;
|
||||
linkLabelGitBuildHash.Text = revisionNumber;
|
||||
tooltip.SetToolTip(linkLabelGitBuildHash, GetGitHubHashLink());
|
||||
linkLabelGitBuildHash.Font = labelProduct.Font;
|
||||
|
||||
string aboutText = _language.AboutText1.TrimEnd() + Environment.NewLine +
|
||||
Environment.NewLine +
|
||||
@ -52,9 +53,9 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
|
||||
using (var g = CreateGraphics())
|
||||
{
|
||||
double height = g.MeasureString("lH", richTextBoxAbout1.Font).Height * 1.4 + 80;
|
||||
double height = g.MeasureString("lH", richTextBoxAbout1.Font).Height * aboutText.SplitToLines().Length;
|
||||
richTextBoxAbout1.Height = (int)height;
|
||||
Height = richTextBoxAbout1.Top + richTextBoxAbout1.Height + 90;
|
||||
Height = richTextBoxAbout1.Top + richTextBoxAbout1.Height + 50;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user