* UIPanel: 修复Radius设置不能超过35的问题
This commit is contained in:
parent
8d55eb44a7
commit
fe6acb78fc
Binary file not shown.
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user