enter image description here How I want it to look ^
Current Code:
Ext.create('Ext.Container', { width: '100%', layout: 'vbox', renderTo: document.body, defaults: { xtype: 'container', width: '50%', layout: 'vbox', border: 0 }, items: [{ bodyStyle: {}, defaults: { style: {}, }, items: [{}] }, { items: [{ xtype: 'container', style: {}, }, { xtype: 'container', style: { 'background': 'grey', 'color': 'white', 'font-size': '15px', }, width: '100%', height: 50, html: 'Layer 1 Header' }, { xtype: 'container', style: { 'background': 'lightgrey', 'color': 'black', 'font-size': '15px', }, width: '100%', height: 200, html: 'Layer 1 Body' }, ] }, { xtype: 'container', style: { 'background': 'darkred', 'color': 'white', 'font-size': '15px', }, width: '25%', height: 200, html: 'Layer 2 Left' }, { xtype: 'container', style: { 'background' : 'darkgreen', 'color' : 'white', 'font-size': '15px', 'pack': 'center', }, width: '25%', height: 200, html: 'Layer 2 Right' } ] });
You can combine
vbox/hboxlayout withalignset tostretchin order to achieve this layout. Check this code, tested in a Fiddle (ExtJS 7.3.0 - Material, classic toolkit):