PDA

View Full Version : Ext.TabPanel - Right justify the tabs



rkrausse
19 Nov 2010, 7:18 AM
I am using the Ext.TabPanel but would like to have the tabs on the right side of the control instead of the left. Is there a way to do this?


thx
Ralph

Screamy
19 Nov 2010, 12:42 PM
I don't see anything in the API other than tabPosition, which only supports 'top' and 'bottom'.

emilschutte
19 Nov 2010, 1:45 PM
The CSS is pretty simple unless you need scrolling, in which case you'll need to override some behavior.


ul.x-tab-strip,
ul.x-tab-strip li,
ul.x-tab-strip li.x-tab-edge
{
float: right;
}

ul.x-tab-strip li
{
margin-left: auto;
margin-right: 2px;
}