View Full Version : resize tabs

2 Nov 2006, 8:37 AM

I have make a tab with 3 tabitems. It works fine.

They have a fixed size at start with css. But i don't know how to resize it; i can't;

It makes me crazy. I dont'know witch div must by resize. I have try with all of them, but o success.

I give a bit of code.

Could some one help me?

.divResultat{position:absolute; left: 460px; top: 100px; }
.divChildOnglet{width: 275px; height: 450px;}
.cadreScroll {overflow: auto}

onglets = new YAHOO.ext.TabPanel('onglets');
onglets.addTab( "ongletrecherches", "Recherches", "", "Voir les résultats de clique ou de recherches" );
onglets.addTab( "ongletfiltres", "Filtres", "", "Voir les derniers filtres de fonction utilisés" );
onglets.addTab( "ongletlegende", "Légende", "", "Voir la légénde et les analyses thématiques" );





2 Nov 2006, 1:51 PM
What is it you want to do? Are you trying to make the body scroll?

2 Nov 2006, 11:08 PM

My copy paste didnot work for the div's tab

The thing i want to do is to resize a tabpanel, in my case, it's onglets.

At start, it has a fixed position with the class 'divResultat' and all its child have the same class 'divChildOnglet' to fixe the size of the tab.

So, when the user resize the page, i calculate the new height of the tab and i try to change the style width of the 'divchildOnglet', but i doesnot work.

I can't resize the panel.

How can i do. Must i recreate it each time i resize the page?

Thanks for advance.


3 Nov 2006, 1:06 AM
Sorry, I still don't understand. What's an onglet?

I am resizing tabs all over the place. You definitely don't need to recreate them.

3 Nov 2006, 2:23 AM

I have found why, my tabs didn't resize!!! :oops:

it was due to a mistak. I didn't change the rigth class's width..

Sorry again.

And what's you are doing in javascript is really great.

thanks :D

3 Nov 2006, 12:53 PM
I'm still curious as to what an onglet is. :)

6 Nov 2006, 4:12 AM
In french, onglets are tabs.

6 Nov 2006, 4:42 AM
Thanks. I was just wondering.