View Full Version : [FIXED] Ext.Panel autoHeight question

4 Mar 2011, 4:54 AM
Good day, everyone.

I've got a quick question regarding an autoHeight option for Ext.Panel component.
I'm using the following 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

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.

Please, help!

Jamie Avins
4 Mar 2011, 9:49 AM
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
hi, i used doComponentLayout() it is working properly. but it shows error in firebug.