PDA

View Full Version : How to set the tabpanel tab width



mothee
13 Jun 2011, 7:04 PM
I set the 'tabwidth' and 'minTabwith' when create the tabpanel, but after I add new tabs by method 'add()', the added tabs' width is not controlled by the 'tabwidth'.
so, How do I set the added tabs' tabwidth.
plz advise.

skirtle
14 Jun 2011, 4:56 PM
It looks suspiciously like a bug to me: tabWidth only seems to be honoured if you also have resizeTabs: true, whereupon it behaves like a max tab width. I guess you could work around this by setting both tabWidth and minTabWidth to the same value with resizeTabs set to true.