-
4 Mar 2011 4:54 AM #1
[FIXED] Ext.Panel autoHeight question
[FIXED] Ext.Panel autoHeight question
Good day, everyone.
I've got a quick question regarding an autoHeight option for Ext.Panel component.
I'm using the following code
Maybe I'm doing something wrong, but form isn't visible. I checked with FireBug and it shows that panel height set to 2px and because of overflow:hidden I couldn't see the form.Code:// define new panel var panel = new Ext.Panel({ border: false, autoHeight: true, renderTo: Ext.get('applicationBody'), items: {} }); // define some form var form = new Ext.FormPanel({ title: false, frame: false, fieldDefaults: { labelWidth: 110, labelStyle: 'padding-left:4px' }, bodyPadding: 10, items: [...], buttons: [{ text: 'Save', }] }); // injecting form into the panel panel.add(form).doLayout()
Please, help!
-
4 Mar 2011 9:49 AM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,653
- Vote Rating
- 14
If you change the doLayout() to doComponentLayout() it will work for now. Next release you shouldn't need either, add currently triggers the doLayout and I'm fixing it to do a component layout when necessary.
-
27 Nov 2012 10:30 PM #3
hi, i used doComponentLayout() it is working properly. but it shows error in firebug.
Similar Threads
-
[FIXED][3.2.1] Element.autoHeight() doesn´t exist
By defcon1 in forum Ext 3.x: BugsReplies: 2Last Post: 5 May 2010, 6:48 AM -
[FIXED-202] HtmlEditor - Source Edit mode - autoHeight
By archmisha in forum Ext 3.x: BugsReplies: 5Last Post: 11 Feb 2010, 5:51 PM -
autoheight in panel
By tomalex0 in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 7 Aug 2009, 8:00 AM -
[FIXED][2.1] 2 fingered mac scroll breaks autoheight grids in safari
By edfilo in forum Ext 2.x: BugsReplies: 4Last Post: 5 Mar 2009, 2:16 PM -
Newbie: autoHeight on DIV element question
By ry.extjs in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 18 Jan 2008, 2:49 PM


Reply With Quote