JavaScript
Run Code
Open in Fiddle
Ext.create('Ext.container.Container', { renderTo: Ext.getBody(), width: 400, height: 500, layout: 'vbox', items: [{ xtype: 'panel', title: 'Panel 1', html: 'Panel 1 sample content', height: 200, border: true }, { xtype: 'panel', title: 'Panel 2', html: 'Panel 2 sample content', height: 200, border: true }] });