* UIPanel: 修复Radius设置不能超过35的问题

This commit is contained in:
Sunny 2022-03-13 11:21:06 +08:00
parent 8d55eb44a7
commit fe6acb78fc
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -209,7 +209,6 @@ namespace Sunny.UI
if (radius != value)
{
radius = Math.Max(0, value);
radius = Math.Min(radius, Math.Min(Width, Height));
OnRadiusChanged(radius);
Invalidate();
}
@ -414,6 +413,7 @@ namespace Sunny.UI
protected virtual void OnPaintRect(Graphics g, GraphicsPath path)
{
radius = Math.Min(radius, Math.Min(Width, Height));
if (RectSides == ToolStripStatusLabelBorderSides.None)
{
return;