Is it possible to make a tab width fit its content, rather than specifying a fixed width?
Thank you,
Eduardo
If you meant tab caption - you can use “" as size
grid.addTab(id,text,"”);
If you mean whole tabbar - such mode can be enabled by
grid.enableAutoSize(true,true);
The caption.
I am loading the tabs using xml rather than javascript, which then returns the following javascript error message:
Invalid argument
@
tab.style.width=parseInt(size||this._tabSize)+“px”;
being:
size="*"
this._tabSize=“150”
Here is the XML I’m using:
<?xml version="1.0" ?>
<tab id="personal" href="profile.asp?TabID=personal" width="*" selected="1">Personal</tab>
<tab id="organisation" href="organisation.asp" width="*">Organisation</tab>
<tab id="enrolments" href="enrolments.asp" width="*">Enrolments</tab>
<tab id="jobspecification" href="jobspecification.asp" width="*">Job Specification</tab>
<tab id="qualification" href="qualification.asp" width="*">Qualification</tab>
<tab id="workarea" href="workarea.asp" width="*">Work Area</tab>
<tab id="certificates" href="certificates.asp" width="*">Certificates</tab>
</row>
</tabbar>
Thanks for your help.
Such syntax, as in your snippet, must work correctly - please check attached sample.
Which version of dhtmlxtabbar are you using ?
1206029003.zip (58.8 KB)