Fix ListBox overflow on high DPI (#235)

This commit is contained in:
剧毒的KCN
2024-09-07 21:35:50 +08:00
committed by GitHub
parent fafff8090f
commit e6a2d26671
16 changed files with 52 additions and 10 deletions

View File

@@ -265,5 +265,10 @@ namespace GrasscutterTools.Pages
{
UIUtil.OpenURL("https://github.com/Penelopeep/CharacterBuilder");
}
private void ListSubAttributionChecked_MeasureItem(object sender, MeasureItemEventArgs e)
{
e.ItemHeight = ListSubAttributionChecked.Font.Height * 3 / 2;
}
}
}