what options do I have to display it? I tried to revalidate after all cell
are populated but without effect
Dátum: štvrtok 12. novembra 2020, čas: 3:33:28 UTC+1, odosielateľ: Shai
Almog
> Hi,
> I think the horizontal span is problematic here. You're spanning two
> columns but they don't have a size.
> Once you span your setting to the spanned column size are removed. That's
> OK if you have other cells within the column the size can be calculated but
> if you span over columns where there's no "regular" cell then we have no
> way of knowing what size of column you wanted. Bot columns end up being 0
> width and aren't shown.
>
> On Thursday, November 12, 2020 at 2:24:54 AM UTC+2 Ivan wrote:
>
>> 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
>>
>
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/d11fa187-efa3-4e6a-872f-f80bed1ab867n%40googlegroups.com.