PDA

View Full Version : How to resolve layout issue in ExtJS4.1



srinivasboda
28 Jun 2012, 9:53 PM
I have a problem with EXTJS 4.1 layout.
how to set the column layout for a panel in ext 4.1.
In mozilla its working fine.
But in IE, it was not rendering and moreover, IE is trying to close.
the sample code is,

var panel1 = getPanel1(); var panel2 = getPanel2(); var panel3 = Ext.create('Ext.Panel',{ layout:{type:'table',columns:2}, title:'Panel3', items:[panel1,panel2], renderTo:Ext.getBody() });Please give me a solution to render the panels in columns in ext4.1 ....

sword-it
29 Jun 2012, 5:27 AM
Hi
This code is working at my end ,may you provide me more specific code or screenshots for better understanding your problem.



Ext.create('Ext.Panel', {
layout: { type: 'table', column: '2' }
, title: 'Panel'
, renderTo: Ext.getBody()
, items: [
{
xtype: 'panel'
, html: 'fhjgfhja'
},
{
xtype: 'panel'
, html: 'jakfghakgjf'
}
]
});