Hi
This is happening only on Android, where it used to work fine.
In the following test case, a Label stops registering events when its
dimension is overriden and Label's height > device's height.
Could you please take a look? Thanks
public void start() {
if(current != null){
current.show();
return;
}
screenOne();
}
private void screenOne() {
Form f = new Form(new BorderLayout());
/*
NOT REGISTERING EVENTS WHEN DIMENSION > DEVICE HEIGHT
*/
Label lbl = new Label() {
@Override
public void pointerReleased(int x, int y) {
super.pointerReleased(x, y);
Dialog.show("Event", "Touched", "Ok", "Cancel");
}
@Override
protected Dimension calcPreferredSize() {
return new Dimension(getDisplayWidth(), getDisplayHeight()
+ 120);
}
};
Container contY = new Container(new BoxLayout(BoxLayout.Y_AXIS));
contY.setScrollableY(true);
contY.setScrollVisible(false);
contY.add(lbl);
f.add(BorderLayout.CENTER, contY);
f.show();
}
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/dbc98902-cb32-4bf9-857b-6f91b0949bd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.