Browse Source

* UIFlowLayoutPanel: 增加Render方法,尝试解决点击状态栏恢复窗体后右侧滚动条未消失的问题

pull/95/head
Sunny 1 year ago
parent
commit
603bc69f32
  1. 9
      SunnyUI/Controls/UIFlowLayoutPanel.cs

9
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

Loading…
Cancel
Save