Hi

I've been trying the new side menu, and I've noticed what it seems to be a 
bug. In the following test case, you can see it clearly:

        Form f = new Form(new 
BorderLayout(BorderLayout.CENTER_BEHAVIOR_CENTER_ABSOLUTE));
        Button btn = new Button("Click me");
        Label lbl = new Label("Replace this");
        Label lbl2 = new Label("Label replaced");        
        Container cont = new Container(new BoxLayout(BoxLayout.Y_AXIS));
        cont.addAll(lbl, btn);
        f.add(BorderLayout.CENTER, cont);
        f.getToolbar().addComponentToSideMenu(new Label("Side Menu"));     
   
        f.show();
        btn.addActionListener((evt) -> {
            if (cont.contains(lbl))
                cont.replace(lbl, lbl2, 
CommonTransitions.createSlide(CommonTransitions.SLIDE_HORIZONTAL, false, 
300));
            else
                cont.replace(lbl2, lbl, 
CommonTransitions.createSlide(CommonTransitions.SLIDE_HORIZONTAL, true, 
300));                
        });


If you press the button without opening the side menu, the transition works 
fine. Once you open and close the side menu, the transition no longer 
works. Reproducible on simulator and devices.

-- 
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/5d001340-65a4-46e4-ae1c-896118aaa200%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to