This workaround solves the problem for now...
Form f = new Form(new BorderLayout());
Container cont = new Container(new BoxLayout(BoxLayout.X_AXIS));
cont.setScrollableX(true);
for (int x=0; x<20; x++) {
Button btn = new Button();
FontImage.setMaterialIcon(btn, FontImage.MATERIAL_APPS, 20);
Container contButton = new Container(new BorderLayout());
contButton.add(BorderLayout.CENTER, btn);
contButton.setLeadComponent(btn);
cont.add(contButton);
}
f.add(BorderLayout.SOUTH, cont);
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/8a7e2e58-bef6-44f8-a796-8597a040db06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.