* UIListBox: 按键上下移动选择项目时,滚动条跟谁

This commit is contained in:
Sunny 2022-02-23 14:09:08 +08:00
parent 51222b19e9
commit 5ec051e218
2 changed files with 7 additions and 0 deletions

Binary file not shown.

View File

@ -25,6 +25,7 @@
* 2021-07-30: V3.0.5
* 2021-08-04: V3.0.5 Items变更的事件
* 2021-12-29: V3.0.9
* 2022-02-23: V3.1.1
******************************************************************************/
using System;
@ -712,6 +713,12 @@ namespace Sunny.UI
//SetScrollInfo();
}
protected override void OnSelectedIndexChanged(EventArgs e)
{
base.OnSelectedIndexChanged(e);
SetScrollInfo();
}
public void SetScrollInfo()
{
if (Bar == null)