View Full Version : TabPanel and different tab widths

7 Feb 2010, 8:39 PM
I have a tab panel and I want the tabs to be different widths but I cannot figure it out. I can change all the tabs widths but not individually. I found a forum post about changing the DOM width so it kind of acts as I want but it doesn't actually change the tab width, just allows the next tab to be moved onto it.

This is the code from that post:


I also set the width config option on the tab but it didn't do anything that I wanted.

8 Feb 2010, 12:00 PM

it works for me out o f the box:

[new Ext.Window({
width : 500,
height : 200,
layout : 'fit',
items : {
xtype : 'tabpanel',
activeTab : 0,
items : [
{ title : 'SDFSDFSFDF' },
{ title : 'oifjew' },
{ title : '93939393939393939' }





8 Feb 2010, 3:43 PM

School wifi won't let me FTP anything! grrr it's like they don't want you doing anything but study in this place! :D

9 Feb 2010, 7:04 AM
I have found out why it wasn't working for me. I had resizeTabs set to true which was increasing the tab size.