Fix ListBox overflow on high DPI (#235)

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

No files matched your search

@@ -82,5 +82,10 @@ namespace GrasscutterTools.Pages
{
SetCommand("/give", $"weapons x{NUDWeaponAmout.Value} lv{NUDWeaponLevel.Value} r{NUDWeaponRefinement.Value}");
}
private void ListWeapons_MeasureItem(object sender, System.Windows.Forms.MeasureItemEventArgs e)
{
e.ItemHeight = ListWeapons.Font.Height * 3 / 2;
}
}
}