Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Jul 2007
    Posts
    48
    Vote Rating
    0
    Webflash is on a distinguished road

      0  

    Default [FIXED] [2.0 rc1] problem with button setVisible(false) not work in initiallize time

    [FIXED] [2.0 rc1] problem with button setVisible(false) not work in initiallize time


    HosMode OS Win Xp
    In this case when window open 2 button is visible but second buton init is visible false
    when change state in click handler visible work


    public
    class BugGxt implements EntryPoint {
    private Button button1;
    private Button button2;

    publicvoid onModuleLoad() {

    Window window =
    new Window();
    window.setSize(400, 200);
    button1 = new Button("button 1", new SelectionListener<ButtonEvent>() {
    @Override

    publicvoid componentSelected(ButtonEvent ce) {
    button1.setVisible(false);
    button2.setVisible(true);
    }

    });
    button2 = new Button("button 2", new SelectionListener<ButtonEvent>() {
    @Override

    publicvoid componentSelected(ButtonEvent ce) {
    button1.setVisible(true);
    button2.setVisible(false);
    }
    });
    button2.setVisible(false);

    window.addButton(
    button1);
    window.addButton(
    button2);
    window.show();
    Viewport viewPort =
    new Viewport();
    viewPort.setLayout(
    new FitLayout());
    //viewPort.add(window);

    RootPanel.get().add(viewPort);

    }

    }

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Fixed in SVN

Thread Participants: 1