Codenameone 在列表中使用span按钮或span标签会中断向上滚动

Codenameone 在列表中使用span按钮或span标签会中断向上滚动,codenameone,Codenameone,我从span按钮/span标签上看到一些非常奇怪的行为。在下面的代码中,如果向上拖动列表(向上滚动列表),所有显示的元素将跳到屏幕底部。正常标签不会出现这种情况(例如,如果禁用添加span按钮的行) 向下拖动正如您所期望的那样有效 //to reproduce: compile the code, drag the screen upwards, and all the text will jump to the bottom of the screen Form hi2 = new Form(

我从span按钮/span标签上看到一些非常奇怪的行为。在下面的代码中,如果向上拖动列表(向上滚动列表),所有显示的元素将跳到屏幕底部。正常标签不会出现这种情况(例如,如果禁用添加span按钮的行)

向下拖动正如您所期望的那样有效

//to reproduce: compile the code, drag the screen upwards, and all the text will jump to the bottom of the screen
Form hi2 = new Form();
hi2.setLayout(new BorderLayout()); 
Container cont17 = new Container(BoxLayout.y());
cont17.setScrollableY(true);
for (int i = 0; i < 10; i++) {
    Label l = new Label("Label " + i);
    cont17.add(l);
}
cont17.add(new SpanButton("SpanButton")); //disable this line and the scroll upwards behaves normally
hi2.add(BorderLayout.CENTER,cont17);
hi2.show(); 
//复制:编译代码,向上拖动屏幕,所有文本将跳转到屏幕底部
表单hi2=新表单();
hi2.setLayout(新的BorderLayout());
cont17=新容器(BoxLayout.y());
续17.setScrollableY(真实);
对于(int i=0;i<10;i++){
标签l=新标签(“标签”+i);
续17.添加(l);
}
续17.添加(新的span按钮(“span按钮”))//禁用此行,则向上滚动的行为正常
hi2.add(BorderLayout.CENTER,cont17);
hi2.show();

这是span按钮遇到的特殊情况问题。你能用这个描述提出一个问题并链接到这篇文章吗?谢谢。它发生在
SpanLabel
上,但不发生在
TextArea
上,这一事实非常有趣!谢谢你确认这个问题。我在这里创建了一个问题:这个问题在span按钮上遇到了一个特例问题。你能用这个描述提出一个问题并链接到这篇文章吗?谢谢。它发生在
SpanLabel
上,但不发生在
TextArea
上,这一事实非常有趣!谢谢你确认这个问题。我在这里创建了一个问题: