diff --git a/Source/GrasscutterTools/Forms/FormMain.Designer.cs b/Source/GrasscutterTools/Forms/FormMain.Designer.cs
index 41c3764f..760fcce2 100644
--- a/Source/GrasscutterTools/Forms/FormMain.Designer.cs
+++ b/Source/GrasscutterTools/Forms/FormMain.Designer.cs
@@ -63,6 +63,7 @@ private void InitializeComponent()
this.ListPages.FormattingEnabled = true;
this.ListPages.Name = "ListPages";
this.ListPages.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.ListPages_DrawItem);
+ this.ListPages.MeasureItem += new System.Windows.Forms.MeasureItemEventHandler(this.ListPages_MeasureItem);
this.ListPages.SelectedIndexChanged += new System.EventHandler(this.ListPages_SelectedIndexChanged);
this.ListPages.SizeChanged += new System.EventHandler(this.ListPages_SizeChanged);
//
diff --git a/Source/GrasscutterTools/Forms/FormMain.cs b/Source/GrasscutterTools/Forms/FormMain.cs
index ffbf2f97..21d14316 100644
--- a/Source/GrasscutterTools/Forms/FormMain.cs
+++ b/Source/GrasscutterTools/Forms/FormMain.cs
@@ -399,8 +399,6 @@ private void ShowPage(BasePage page)
///
/// 导航列表项居中绘制
///
- ///
- ///
private void ListPages_DrawItem(object sender, DrawItemEventArgs e)
{
e.DrawBackground();
@@ -413,6 +411,15 @@ private void ListPages_DrawItem(object sender, DrawItemEventArgs e)
e.Graphics.DrawString(ListPages.Items[e.Index].ToString(), e.Font, new SolidBrush(e.ForeColor), e.Bounds, strFmt);
}
+ ///
+ /// 导航列表高度测量
+ ///
+ private void ListPages_MeasureItem(object sender, MeasureItemEventArgs e)
+ {
+ // 列表项高度为字体高度1.5倍
+ e.ItemHeight = ListPages.Font.Height * 3 / 2;
+ }
+
///
/// 导航列表大小改变时触发
///