Hi guys,
when I use vertical and horizontal span in table layout (both in one constraint) the component is not rendered. When I remove one or another then component appears.
In example below the Button("1,3") is not rendered. What's wrong with my code pls?
Form hi = new Form("Table layout test");
TableLayout tl = new TableLayout(2,4);
hi.setLayout(tl);
hi.add(new Button("1,1"));
hi.add(new Button("1,2"));
TableLayout.Constraint constr = tl.createConstraint();
constr.horizontalSpan(2);
constr.verticalSpan(2);
hi.add(constr, new Button("1,3"));
hi.add(new Button("2,1"));
hi.add(new Button("2,2"));
hi.show();
Tested in simulator.
Thanks
Ivan