Ok, this test case wasn't easy to find, but I got it.

        Form hi = new Form("Tabs", new LayeredLayout());
        Tabs t = new Tabs();
        SpanLabel t1 = new SpanLabel("Blue");
        t1.getAllStyles().setBgColor(0xff);
        t1.getAllStyles().setBgTransparency(255);
        SpanLabel t2 = new SpanLabel("Green");
        t2.getAllStyles().setBgColor(0xff00);
        t2.getAllStyles().setBgTransparency(255);
        SpanLabel t3 = new SpanLabel("Red");
        t3.getAllStyles().setBgColor(0xff0000);
        t3.getAllStyles().setBgTransparency(255);

        t.addTab("Blue", t1);
        t.addTab("Green", t2);
        t.addTab("Red", t3);

        UITimer.timer(500, true, hi, () -> {
            int idx = t.getSelectedIndex() + 1;
            if(idx >= t.getTabCount()) {
                idx = 0;
            }
            t.setSelectedIndex(idx, true);
        });

        hi.add(t);
        hi.show();    

As you can see the combination of LayeredLayout and SpanLabel is causing 
the issue. This configuration used to work before.

LayeredLayout is causing some troubles with container.replace(contA, contB) 
as well. I can try to reproduce this if you need it.

-- 
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/8774832f-3031-4430-b41a-b09917baf321%40googlegroups.com.

Reply via email to