From 603bc69f32f744778d95eecd6de1edd67244b679 Mon Sep 17 00:00:00 2001 From: Sunny Date: Sun, 28 Apr 2024 14:31:28 +0800 Subject: [PATCH] =?UTF-8?q?*=20UIFlowLayoutPanel:=20=E5=A2=9E=E5=8A=A0Rend?= =?UTF-8?q?er=E6=96=B9=E6=B3=95=EF=BC=8C=E5=B0=9D=E8=AF=95=E8=A7=A3?= =?UTF-8?q?=E5=86=B3=E7=82=B9=E5=87=BB=E7=8A=B6=E6=80=81=E6=A0=8F=E6=81=A2?= =?UTF-8?q?=E5=A4=8D=E7=AA=97=E4=BD=93=E5=90=8E=E5=8F=B3=E4=BE=A7=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E6=9D=A1=E6=9C=AA=E6=B6=88=E5=A4=B1=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Controls/UIFlowLayoutPanel.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/SunnyUI/Controls/UIFlowLayoutPanel.cs b/SunnyUI/Controls/UIFlowLayoutPanel.cs index 99730ee8..1bf561b7 100644 --- a/SunnyUI/Controls/UIFlowLayoutPanel.cs +++ b/SunnyUI/Controls/UIFlowLayoutPanel.cs @@ -30,6 +30,7 @@ * 2023-01-11: V3.3.1 修复只显示水平滚动条时,鼠标滚轮滚动水平滚动条不动的问题 * 2023-11-05: V3.5.2 重构主题 * 2024-01-17: V3.6.3 重写ScrollControlIntoView函数 + * 2024-04-28: V3.6.5 增加Render方法,尝试解决点击状态栏恢复窗体后右侧滚动条未消失的问题 ******************************************************************************/ using System; @@ -72,6 +73,14 @@ namespace Sunny.UI timer.Start(); } + public void Render() + { + if (Panel == null) return; + int height = Panel.Height; + Panel.Height = height + 1; + Panel.Height = height; + } + [DefaultValue(true)] [Browsable(true)] public new bool AutoScroll