PDA

View Full Version : html in panel not coming in top



chandan.behura
31 Jul 2012, 8:05 AM
Hi,
the html i have given for the panel is not coming in top of all item.its comming at bottom.so please tell me what may be the issue.


Ext.create('Ext.panel.Panel',{
html:'Please setup your preferences for default here.',
header:false,
border:false,
height:600,
width:1700,
margin:20,
region:'center',
items:[
{xtype:'label',text:'Create Campaign'},
{xtype:'label'',text:'Landing Page'},innerPanel1,innerPanel2],
layout : {
type : 'table',
columns:2
//align : 'center'

}

});

scottmartin
31 Jul 2012, 10:46 AM
After trying to run your panel with the missing components, I am not sure what you are trying to do here, or where you have a problem.

Please provide a small working test case and also provide a screenshot that denotes the problem.

Regards,
Scott.

chandan.behura
31 Jul 2012, 8:23 PM
bellow is the working code.problem is html:'Please setup your preferences for default here.', is not commint abobe other items.its comming bellow the items.i want it in top corner of the panel.


function fn(){
Ext.create('Ext.panel.Panel',{
renderTo:Ext.getBody(),
html:'Please setup your preferences for default here.',
header:false,
border:false,
height:600,
width:1700,
margin:20,
region:'center',
items:[
{xtype:'label',text:'Create Campaign'},
{xtype:'label',text:'Landing Page'}],
layout : {
type : 'table',
columns:2
}

});
}
Ext.onReady(fn);

sprakash
1 Aug 2012, 1:40 AM
if you specify html it is a content of the panel (rendered as child)
if you specify items it is also rendered as child item

so use proper layout and design it.