Results 1 to 3 of 3

Thread: Window close not destroying the child components correctly

  1. #1
    Sencha User
    Join Date
    Apr 2011
    Posts
    15
    Vote Rating
    2
      0  

    Default Window close not destroying the child components correctly

    A window is closed using either the close button or window.close function .
    After closing the window if we create another instance of the window it gives the following error -

    'Registering duplicate id '###' with this manger for the a sub -component of the window.
    Am getting this issue in revision 4.2.0.663.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    This works for me:

    Code:
    new Ext.button.Button({
        renderTo : document.body,
        text     : 'Open Window',
        handler  : function() {
            new Ext.window.Window({
                autoShow : true,
                width    : 400,
                height   : 400,
                title    : 'Test',
                html     : 'test',
                id       : 'foo'
            });
        }
    });
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Apr 2011
    Posts
    15
    Vote Rating
    2
      0  

    Default

    Sorry...the issue was with my code and has been rectified. Thanks for the help.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •