View Full Version : Tabitem title size
Does anyone know how to configure the title of a tab (the part U click to view the tab contents) to be as wide as the title text or as wide as U want ??
13 Apr 2011, 4:58 AM
I have attached an image to make it clearer. The picture shows a tab with two items, U can see that the second tabitem clips the title such that U can't read it completely. A little investigation reveals that setTabWidth and setMinTabWidth of the TabPanel class does nothing to solve our problem. Looking further, I discovered that the tabitem header is created with an inner class called HeaderItem which extends Component, though it provides a setWith method (via the Component API) but it is a dummy method and it was not implemented.
21 Apr 2011, 7:18 AM
The problem was caused by :
Once I took that out of the way, the tabs were automatically as wide as their label size. Cheers.
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.