* UITextBox: 修复微软雅黑字体显示不完整的问题

This commit is contained in:
Sunny 2024-08-26 22:30:41 +08:00
parent d1613f40d2
commit 7cf009af36

View File

@ -61,6 +61,7 @@
* 2024-01-13: V3.6.3 Radius时
* 2024-06-11: V3.6.6
* 2024-08-12: V3.6.8
* 2024-08-26: V3.6.9
******************************************************************************/
using System;
@ -153,10 +154,9 @@ namespace Sunny.UI
{
if (!edit.Multiline)
{
edit.AutoSize = true;
int height = edit.Height;
int height = edit.Font.Height;
edit.AutoSize = false;
edit.Height = height + 1;
edit.Height = height + 2;
SizeChange();
}
}