Another way, and not so elegant, is the variety of VBox and HBox layouts, but is pure ExtJS and does not rely on UX:
Ext.create('Ext.container.Viewport',{ style: 'background-color: white;', layout: { type: 'vbox', align : 'stretch', pack : 'start', }, items: [{ flex: 1, border: false },{ height: 200, border: false, layout: { type: 'hbox', pack: 'start', align: 'stretch' }, items: [{ flex: 1, border: false },{ html:'Centered Panel', width: 400 },{ flex: 1, border: false }] },{ flex: 1, border: false }] //items: [login_panel], });
Lloyd source share