Using the Ext.Panel and table layout, I was able to create the layout the way I want. However, how to change this code so that I can proportionally determine the width and height?
eg. the table should not be 800 pixels, but 100% of the screen width, and each cell should not be 200 pixels, but 25%.

here is the code:
<script type="text/javascript"> clearExtjsComponent(targetRegion); var table_wrapper2 = new Ext.Panel({ id: 'table_wrapper2', baseCls: 'x-plain', renderTo: Ext.getBody(), layout:'table', layoutConfig: {columns:2}, defaults: { frame:true, width:200, height: 200, style: 'margin: 0 10px 10px 0' }, items:[{ title:'Shopping Cart', width: 400, height: 290, colspan: 2 },{ title:'Invoice Address', width: 190, height: 100 },{ title:'Delivery Address', width: 200, height: 100 } ] }) var table_wrapper = new Ext.Panel({ id:'table_wrapper', baseCls:'x-plain', renderTo: Ext.getBody(), layout:'table', layoutConfig: {columns:4}, defaults: { frame:true, width:200, height: 200, style: 'margin: 10px 0 0 10px' }, items:[{ title:'Orders', width: 810, colspan: 4 },{ title:'Customer Information', width: 400, height: 400, colspan: 2 },{ </script>
javascript extjs
Edward tanguay
source share