* UIPipe: 修复了管道宽度调大后水流不显示的问题

This commit is contained in:
Sunny 2023-02-24 11:11:15 +08:00
parent cb7e3d338f
commit 0c066ff6dc

View File

@ -18,6 +18,7 @@
* *
* 2020-07-26: V3.0.5 * 2020-07-26: V3.0.5
* 2021-07-29: V3.0.5 * 2021-07-29: V3.0.5
* 2023-02-24: V3.3.2
******************************************************************************/ ******************************************************************************/
using System; using System;
@ -600,9 +601,9 @@ namespace Sunny.UI
} }
} }
if (rect.Width >= rect.Height && isShow) if (isShow)
{ {
g.FillRoundRectangle(color, rect, Radius - 4); g.FillRoundRectangle(color, rect, Math.Min(rect.Width, rect.Height));
} }
pos += FlowSize; pos += FlowSize;
@ -654,9 +655,9 @@ namespace Sunny.UI
} }
} }
if (rect.Height >= rect.Width && isShow) if (isShow)
{ {
g.FillRoundRectangle(color, rect, Radius - 4); g.FillRoundRectangle(color, rect, Math.Min(rect.Width, rect.Height));
} }
pos += FlowSize; pos += FlowSize;