I'm actually surprised this works for you. From the code it looks that the
columns would be broken not the rows but maybe this is different from the
actual code you're using.
On Friday, November 13, 2020 at 12:03:07 AM UTC+2 Ivan wrote:
> I added one extra row of height 1% to make horizontal span working and it
> looks quite good.
> If there is no real solution I can use this dirty workaround.
>
> Dátum: štvrtok 12. novembra 2020, čas: 10:15:12 UTC+1, odosielateľ: Ivan
>
>> 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/5a68b2de-8b84-4a85-9513-28d6780a8a69n%40googlegroups.com.