mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 20:52:44 +01:00
Use Utilities.FixLargeFonts (Forms/ShowHistory)
This commit is contained in:
parent
17f939539d
commit
5bf3f97894
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user