diff --git a/Source/GrasscutterTools/Forms/FormMain.cs b/Source/GrasscutterTools/Forms/FormMain.cs index 2e1ca6e..ec460a2 100644 --- a/Source/GrasscutterTools/Forms/FormMain.cs +++ b/Source/GrasscutterTools/Forms/FormMain.cs @@ -399,8 +399,6 @@ namespace GrasscutterTools.Forms /// /// 导航列表项居中绘制 /// - /// - /// private void ListPages_DrawItem(object sender, DrawItemEventArgs e) { e.DrawBackground(); @@ -413,6 +411,15 @@ namespace GrasscutterTools.Forms 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; + } + /// /// 导航列表大小改变时触发 ///