Mthor
28 Feb 2012, 8:55 AM
below is code from the designer, that has my buttons with iconAlign: 'top' , the icon is aligned to the left and not centered how it should be. In chrome, FF the icon is aligned center and looks perfect!! in ie I get aligned left. below the designer code is the iconCls and cls for the images. any ideas why this is happening in ie?
Ext.define('UserPortal.view.ui.MenuButtonBar', {
extend: 'Ext.toolbar.Toolbar',
height: 80,
id: 'buttonBar',
itemId: 'buttonBar',
initComponent: function() {
var me = this;
Ext.applyIf(me, {
items: [
{
xtype: 'container',
cls: 'logo',
height: 64,
width: 167
},
{
xtype: 'tbspacer',
flex: 1
},
{
xtype: 'button',
cls: 'styledButton',
id: 'corporateDirectoryButton',
iconAlign: 'top',
iconCls: 'directory_32',
scale: 'large',
text: 'Corporate Directory'
},
{
xtype: 'tbspacer',
width: 25
},
{
xtype: 'button',
cls: 'styledButton',
id: 'outlookButton',
iconAlign: 'top',
iconCls: 'outlook_32',
scale: 'large',
text: 'Outlook'
},
{
xtype: 'tbspacer',
width: 25
},
{
xtype: 'button',
cls: 'styledButton',
id: 'administrationButton',
iconAlign: 'top',
iconCls: 'admin_32',
scale: 'large',
text: 'Administration'
},
{
xtype: 'tbspacer',
width: 25
},
{
xtype: 'button',
cls: 'styledButton',
id: 'downloadsButton',
iconAlign: 'top',
iconCls: 'downloads_32',
scale: 'large',
text: 'Downloads'
},
{
xtype: 'tbspacer',
width: 25
},
{
xtype: 'button',
cls: 'styledButton',
id: 'helpTrainingButton',
iconAlign: 'top',
iconCls: 'training_32',
scale: 'large',
text: 'Help - Training'
},
{
xtype: 'tbspacer',
width: 25
},
{
xtype: 'button',
cls: 'styledButton',
id: 'logoutButton',
iconAlign: 'top',
iconCls: 'button_cancel_32',
scale: 'large',
text: 'Logout'
},
{
xtype: 'tbspacer',
width: 25
}
]
});
me.callParent(arguments);
}
});
.styledButton .x-btn-inner {
color: #1a4bbb; !important;
font-size: 12px; !important;
}
.directory_32{
background-image:url('../images/32x32/directory_32.png');
background-position: center top;
}
ie 32212
other browsers 32213
Thanks for the help!
Ext.define('UserPortal.view.ui.MenuButtonBar', {
extend: 'Ext.toolbar.Toolbar',
height: 80,
id: 'buttonBar',
itemId: 'buttonBar',
initComponent: function() {
var me = this;
Ext.applyIf(me, {
items: [
{
xtype: 'container',
cls: 'logo',
height: 64,
width: 167
},
{
xtype: 'tbspacer',
flex: 1
},
{
xtype: 'button',
cls: 'styledButton',
id: 'corporateDirectoryButton',
iconAlign: 'top',
iconCls: 'directory_32',
scale: 'large',
text: 'Corporate Directory'
},
{
xtype: 'tbspacer',
width: 25
},
{
xtype: 'button',
cls: 'styledButton',
id: 'outlookButton',
iconAlign: 'top',
iconCls: 'outlook_32',
scale: 'large',
text: 'Outlook'
},
{
xtype: 'tbspacer',
width: 25
},
{
xtype: 'button',
cls: 'styledButton',
id: 'administrationButton',
iconAlign: 'top',
iconCls: 'admin_32',
scale: 'large',
text: 'Administration'
},
{
xtype: 'tbspacer',
width: 25
},
{
xtype: 'button',
cls: 'styledButton',
id: 'downloadsButton',
iconAlign: 'top',
iconCls: 'downloads_32',
scale: 'large',
text: 'Downloads'
},
{
xtype: 'tbspacer',
width: 25
},
{
xtype: 'button',
cls: 'styledButton',
id: 'helpTrainingButton',
iconAlign: 'top',
iconCls: 'training_32',
scale: 'large',
text: 'Help - Training'
},
{
xtype: 'tbspacer',
width: 25
},
{
xtype: 'button',
cls: 'styledButton',
id: 'logoutButton',
iconAlign: 'top',
iconCls: 'button_cancel_32',
scale: 'large',
text: 'Logout'
},
{
xtype: 'tbspacer',
width: 25
}
]
});
me.callParent(arguments);
}
});
.styledButton .x-btn-inner {
color: #1a4bbb; !important;
font-size: 12px; !important;
}
.directory_32{
background-image:url('../images/32x32/directory_32.png');
background-position: center top;
}
ie 32212
other browsers 32213
Thanks for the help!