mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-28 06:52:35 +01:00
Use Utilities.FixLargeFonts (Forms/MergeShortLines)
This commit is contained in:
parent
1e3eb2f0b5
commit
72194c3ae7
@ -19,18 +19,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
public MergeShortLines()
|
||||
{
|
||||
InitializeComponent();
|
||||
FixLargeFonts();
|
||||
}
|
||||
|
||||
private void FixLargeFonts()
|
||||
{
|
||||
var graphics = CreateGraphics();
|
||||
var textSize = graphics.MeasureString(buttonOK.Text, Font);
|
||||
if (textSize.Height > buttonOK.Height - 4)
|
||||
{
|
||||
int newButtonHeight = (int)(textSize.Height + 7 + 0.5);
|
||||
Utilities.SetButtonHeight(this, newButtonHeight, 1);
|
||||
}
|
||||
Utilities.FixLargeFonts(this, buttonOK);
|
||||
}
|
||||
|
||||
public Subtitle MergedSubtitle
|
||||
|
Loading…
Reference in New Issue
Block a user