Use Utilities.FixLargeFonts (Forms/RemoveTextFromHearImpaired)

This commit is contained in:
Waldi Ravens 2015-05-27 09:53:00 +02:00
parent cc055b1d95
commit 88c9c2ae9d

View File

@ -61,18 +61,7 @@ namespace Nikse.SubtitleEdit.Forms
listViewFixes.Columns[3].Text = Configuration.Settings.Language.General.After;
buttonOK.Text = Configuration.Settings.Language.General.Ok;
buttonCancel.Text = Configuration.Settings.Language.General.Cancel;
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 void Initialize(Subtitle subtitle)