stirucherai
21 Dec 2011, 1:31 AM
Hi,
I have a panel with html set to some value. I have attached a cls. The color of the font works when it is set to any other color but white. White alone it is not displaying anything.
Ext.define('NDP.view.topPanel', {
extend: 'Ext.Panel',
alias: 'widget.topPanel',
xtype:'topPanel',
config: {
items: [{
xtype:'toolbar',
defaults: {
iconMask: true,
ui: 'plain'
},
items:[
{
xtype:'panel',
id:"appHeading",
cls:'menuHeadingCLS',
height:50,
width:300,
html:'Application Heading' },
{xtype:'spacer'},
{
iconCls : 'btnSetting',
id:'menuSettingButton'
}
]
}]
}
});
I have the following css
.menuHeadingCLS{
color:#FFF;
padding-top:5px;
padding-left:5px;
}
I have a panel with html set to some value. I have attached a cls. The color of the font works when it is set to any other color but white. White alone it is not displaying anything.
Ext.define('NDP.view.topPanel', {
extend: 'Ext.Panel',
alias: 'widget.topPanel',
xtype:'topPanel',
config: {
items: [{
xtype:'toolbar',
defaults: {
iconMask: true,
ui: 'plain'
},
items:[
{
xtype:'panel',
id:"appHeading",
cls:'menuHeadingCLS',
height:50,
width:300,
html:'Application Heading' },
{xtype:'spacer'},
{
iconCls : 'btnSetting',
id:'menuSettingButton'
}
]
}]
}
});
I have the following css
.menuHeadingCLS{
color:#FFF;
padding-top:5px;
padding-left:5px;
}