In ExtJS, I had some minor problems placing two sets of fields side by side on the hbox layout hbox . The hbox layout seems to be unaware of the height of the set of fields and crop it, even if I explicitly set the height of the panel to something big.
Here's what it looks like:

The blue frame is the hbox, inside which there are 2 sets of fields: "Customer Information" and "Owner Information". The code is (simplified and run in Firebug):
var clientInfo = { xtype: 'fieldset', defaultType: 'textfield', title: 'Client Info', items: [ { fieldLabel: 'First Name' }, { fieldLabel: 'Last Name' }, { fieldLabel: 'Cell Phone #' }, { fieldLabel: 'Work Phone #' } ] }; var ownerInfo = { xtype: 'fieldset', defaultType: 'textfield', title: 'Owner Info', items: [ { fieldLabel: 'First Name' }, { fieldLabel: 'Last Name' }, { fieldLabel: 'Cell Phone #' }, { fieldLabel: 'Work Phone #' } ] }; new Ext.Panel({ layout: 'hbox', frame: true, height: 400, width: 800, defaults: { flex: 1 }, items: [ clientInfo, ownerInfo ] }).render(document.body);
PS If you delete defaults: { flex: 1 } , the sets of fields will display correctly, but will not automatically resize to fit the container, which is what I need.
Does anyone know how to fix this rendering problem? Thank you
source share