修复上下左右报错问题

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)

View File

@@ -1,7 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<component size="231,32" extention="Label">
<component size="231,32" extention="Button">
<controller name="show" pages="0,,1," selected="0"/>
<controller name="button" pages="2,up,3,down" selected="1"/>
<displayList>
<text id="n6_e9z8" name="title" xy="0,0" size="189,32" alpha="0.7" fontSize="22" color="#ffffff" text="Screen resolution"/>
<text id="n6_e9z8" name="title" xy="0,0" size="189,32" alpha="0.7" fontSize="22" color="#8bccd1" text="Screen resolution">
<gearColor controller="button" pages="3" values="#8bccd1,#000000" default="#ffffff,#000000"/>
</text>
</displayList>
<Button mode="Radio"/>
</component>