Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    1
    Vote Rating
    0
    RodneyEdie is on a distinguished road

      0  

    Default [FIXED-EXTJSIV-330] lastComponentSize undefined problem when adding grids to tabpanel

    [FIXED-EXTJSIV-330] lastComponentSize undefined problem when adding grids to tabpanel


    Not sure if this is a bug or just because I don't know what I'm doing, but I get a problem on line 37294 of ext-all-debug.js. this.componentLayout.lastComponentSize is undefined. It is happening with some grids I am dynamically creating and adding to a panel. if the grid is on the first panel, it works fine, but for the panels that are not showing yet, I get this bug, and layout of any further components stops.

    I have modified my copy of ext-all-debug.js to check for the condition, and now my app works as expected

    i modified this:
    Code:
    getDesiredWidth: function() {
            if (this.rendered) {
                return this.componentLayout.lastComponentSize.width;
            
            } else if (this.flex) {
                
                return this.width;
            } else {
                return this.width;
            }
        },
    
    to this:
    
    getDesiredWidth: function() {
            if (this.rendered) {
                if( this.componentLayout.lastComponentSize === undefined ){
    				return this.width;
    			}				
                return this.componentLayout.lastComponentSize.width;
            
            
            
            } else if (this.flex) {
                
                return this.width;
            } else {
                return this.width;
            }
        },

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    18
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Thank you for the report, this has been fixed for the next release.

Similar Threads

  1. Replies: 1
    Last Post: 24 Mar 2011, 11:07 AM
  2. Replies: 0
    Last Post: 23 Mar 2011, 1:01 PM
  3. Replies: 1
    Last Post: 21 Mar 2011, 7:30 AM
  4. Adding multiple Grids to a TabPanel
    By hebee in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 23 Feb 2009, 11:25 AM
  5. Problem with TabPanel and Grids
    By orionmd in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 28 Jul 2008, 9:48 AM

Thread Participants: 1