1. #1
    Sencha User
    Join Date
    Nov 2007
    Posts
    5
    Vote Rating
    0
    markporter is on a distinguished road

      0  

    Default [2.0][DUP][SOLVED] Cannot close tab panel with un-rendered buttons

    [2.0][DUP][SOLVED] Cannot close tab panel with un-rendered buttons


    Using ext-base
    windows,linux,firefox 2, ie 6

    When closing a tab that contains un-rendered buttons array, an error is thrown. In this example, closing the tab, without activating it first, generates an error. Adding the deferredRender:false option to the tabPanel config fixes the problem, but it defeats the purpose of config objects if their contents must be rendered even if not displayed.

    This is not a problem in [2.0beta1]

    PHP Code:
    Ext.onReady(function(){
            new 
    Ext.Viewport({
                
    items:[{
                    
    xtype:"tabpanel",
                    
    id:"tabs",
                    
    items:[{
                        
    title:'button',
                        
    closable:true,
                        
    buttons:[{text:"dude"}]
                    }]
                }]
            });
        }); 
    errors:

    item has no properties
    .../ext-2.0/ext-all-debug.js
    Line 18537

    this.el has no properties
    .../ext-2.0/ext-all-debug.js
    Line 27319

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,263
    Vote Rating
    121
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Thanks for the bug report. We will look into this.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Location
    Austin, Texas
    Posts
    2
    Vote Rating
    0
    brian.moeskau is an unknown quantity at this point

      0  

    Default


    This has previously been reported and is fixed in SVN.

Thread Participants: 2