-
25 Mar 2011 2:19 AM #1
[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; } },
-
25 Mar 2011 7:02 AM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,653
- Vote Rating
- 14
Thank you for the report, this has been fixed for the next release.
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[FIXED-EXTJSIV-199] TablePanel: me.verticalScroller is undefined
By uzver in forum Ext:BugsReplies: 1Last Post: 24 Mar 2011, 11:07 AM -
[OPEN-EXTJSIV-258] bug: window hide makes use of undefined function
By wsi in forum Ext:BugsReplies: 0Last Post: 23 Mar 2011, 1:01 PM -
[OPEN-EXTJSIV-195] combobox error: me.dom.className is undefined
By oaugustus in forum Ext:BugsReplies: 1Last Post: 21 Mar 2011, 7:30 AM -
Adding multiple Grids to a TabPanel
By hebee in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 23 Feb 2009, 11:25 AM -
Problem with TabPanel and Grids
By orionmd in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 28 Jul 2008, 9:48 AM


Reply With Quote