Categories | Question details Back To List | ||||||||
Make tab width fit its content Is it possible to make a tab width fit its content, rather than specifying a fixed width? Thank you, Eduardo Answer posted by Support on Mar 20, 2008 06:38 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); Answer posted by Eduardo Yanez on Mar 20, 2008 07:23 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="*"
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. Answer posted by Support on Mar 20, 2008 08:50 Such syntax, as in your snippet, must work correctly - please check attached sample. Which version of dhtmlxtabbar are you using ? Attachments (1)
|