* UIPage, UIForm, UITitlePanel: 调整了标题的最小高度

This commit is contained in:
Sunny 2022-04-03 15:44:59 +08:00
parent 066f334b67
commit 93e10483d3
4 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@ -42,7 +42,7 @@ namespace Sunny.UI
get => _titleHeight;
set
{
_titleHeight = value;
_titleHeight = Math.Max(19, value);
Padding = new Padding(0, value, 0, 0);
CalcSystemBoxPos();
Invalidate();

View File

@ -417,7 +417,7 @@ namespace Sunny.UI
get => titleHeight;
set
{
titleHeight = Math.Max(value, 31);
titleHeight = Math.Max(value, 29);
Padding = new Padding(Padding.Left, showTitle ? titleHeight : Padding.Top, Padding.Right, Padding.Bottom);
Invalidate();
CalcSystemBoxPos();

View File

@ -536,7 +536,7 @@ namespace Sunny.UI
get => titleHeight;
set
{
titleHeight = Math.Max(value, 31);
titleHeight = Math.Max(value, 19);
Padding = new Padding(Padding.Left, titleHeight, Padding.Right, Padding.Bottom);
CalcSystemBoxPos();
Invalidate();