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

      0  

    Default [CLOSED] Building dynamic menus broken in 2.0rc2

    [CLOSED] Building dynamic menus broken in 2.0rc2


    Popup Menus are not displayed correctly after the menu contents is rebuilt.
    Only the first menu item is shown when button is pressed the first time.
    It works fine with gxt 1.2.3

    Tested with FF3.5, IE7 & hosted mode, WinXP
    GXT 2.0rc2
    GWT 1.6.4

    Thanks

    Code:
    public class Test implements EntryPoint {
       Menu menu;
    
       public void onModuleLoad() {
    
          final Timer t = new Timer() {
             public void run() {
                menu.removeAll();
                for (int i = 0; i < 5; i++ ) {
                   menu.add(new MenuItem("menu item "+i));
                }
             }
          };
    
          Button btn = new Button();
          btn.setText("Press Me");
          menu = new Menu() {
             protected void onShow() {
                super.onShow();
                t.schedule(500);
             }
          };
          menu.add(new MenuItem("..."));
          btn.setMenu(menu);
          RootPanel.get().add(btn);
       }
    }

  2. #2
    Sencha User
    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


    You should not modify menus while they are active. Too much logic is going on before showing a menu to contrain it correctly. You have to run that again. I am closing this issue.

  3. #3
    Sencha User
    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


    You could also disable menuscrolling

Thread Participants: 1