smartGWT: How to increase the TabPanel Header's Width

孤街浪徒 提交于 2019-12-22 09:40:22

问题


I have created a tabPanel in smartGWT, Attached is the screenshot I am trying to increase my tab headers width or to make my header name place vertically so that the names "company information " and "relations" can be visible in one line

I have use this widget

            http://www.smartclient.com/smartgwt/showcase/#layout_tabs_orientation 

Any idea how can i increase my tab header's width or to make the headers title type vertically

thanks


回答1:


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;
 }


来源:https://stackoverflow.com/questions/13251727/smartgwt-how-to-increase-the-tabpanel-headers-width

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!