PDA

View Full Version : TabPanel with iconCls dock on top do not display icon



jimmylu98
23 Aug 2011, 7:18 AM
TabPanel with iconCls dock on bottom will display icon and title, however, if dock on top, or left/right, it only display title without icon. Is there any way to display icon on TabPanel when dock on top or left/right?



Ext.setup({ tabletStartupScreen: 'tablet_startup.png', phoneStartupScreen: 'phone_startup.png', icon: 'icon.png', glossOnIcon: false, onReady: function() {
var panel1 = new Ext.Panel({ title : 'Panel1', iconCls : 'more', id : 'panel1', html : 'Here is panel1' }); var panel2 = new Ext.Panel({ title : 'Panel2', iconCls : 'more', id : 'panel2', html : 'Here is panel2' }); var mainPanel = new Ext.TabPanel({ tabBar : { dock : 'top', layout : { pack : 'center' } }, dockedItems : [{ dock : 'top', xtype : 'toolbar', title : 'Standard Titlebar' }], items : [ panel1, panel2 ], fullscreen : true, layout : 'fit' }); }});