Use Utilities.FixLargeFonts (Forms/ShowHistory)

This commit is contained in:
Waldi Ravens 2015-05-27 09:14:03 +02:00
parent 17f939539d
commit 5bf3f97894

View File

@ -23,18 +23,7 @@ namespace Nikse.SubtitleEdit.Forms
buttonCompareHistory.Text = Configuration.Settings.Language.ShowHistory.CompareHistoryItems;
buttonRollback.Text = Configuration.Settings.Language.ShowHistory.Rollback;
buttonCancel.Text = Configuration.Settings.Language.General.Cancel;
FixLargeFonts();
}
private void FixLargeFonts()
{
Graphics graphics = this.CreateGraphics();
SizeF textSize = graphics.MeasureString(buttonRollback.Text, this.Font);
if (textSize.Height > buttonRollback.Height - 4)
{
int newButtonHeight = (int)(textSize.Height + 7 + 0.5);
Utilities.SetButtonHeight(this, newButtonHeight, 1);
}
Utilities.FixLargeFonts(this, buttonRollback);
}
public int SelectedIndex