smartGWT: How to increase the TabPanel Header's Width

喜欢而已 提交于 2019-12-05 22:36:52

For controlling the tabs' thickness(i.e. width) use:

tabset.setTabBarThickness(int tabBarThickness);

For showing the text with vertical orientation, you can use css to control the style of the text used as title for the tab. So something like the following shall suffice:

tab.setTitle("My Tab");
tab.setTitleStyle("tab-text");

And in the application's css:

.vtab-text, .vtab-textSelected, .vtab-textSelectedOver {
    -moz-transform: rotate(90.0deg);  /* FF3.5+ */
    -o-transform: rotate(90.0deg);  /* Opera 10.5 */
    -webkit-transform: rotate(90.0deg);  /* Saf3.1+, Chrome */
    filter:  progid:DXImageTransform.Microsoft.BasicImage(rotation=90deg);  /* IE6,IE7 */
    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=90)"; /* IE8 */
    color: green;
 }
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!