修复上下左右报错问题

This commit is contained in:
2025-10-29 23:46:15 +08:00
parent 234b18d3f8
commit 7bcd6bf88d
5 changed files with 12 additions and 7 deletions

View File

@@ -125,8 +125,8 @@ namespace NBF
{
await Task.Delay(100);
CommonTopPanel.Show();
// LoginPanel.Show();
PreviewPanel.Show();
LoginPanel.Show();
// PreviewPanel.Show();
}
#region New

View File

@@ -6,7 +6,7 @@ using NBC;
namespace NBF
{
public partial class ListTitleItem : GLabel
public partial class ListTitleItem : GButton
{
private void OnInited()
{

View File

@@ -64,8 +64,9 @@ namespace NBF
{
if (selectedIndex >= 0 && selectedIndex < _listData.Count)
{
var count = List.numChildren;
List.selectedIndex = selectedIndex;
List.ScrollToView(List.selectedIndex);
List.ScrollToView(selectedIndex);
}
}
@@ -94,7 +95,7 @@ namespace NBF
Log.Error(e);
}
_columnsCount = 5;
_columnsCount = 6;
}
void OnClickListItem(EventContext context)