Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 1 week ago
TabSheet Tab with same width
Hi All,
How can I get the tabs of a tab sheet to be of the same width.
Example :-
import com.vaadin.ui.Label;
import com.vaadin.ui.TabSheet;
public class MainTabSheet extends TabSheet {
public MainTabSheet() {
setWidth("400px");
addTab(new Label("Order Parts"),"Order Parts");
addTab(new Label("Help"),"Help");
}
}
The tab takes the width of the caption, how can I make it take 200px for the first tab and 200px for the second tab.
Thanks in Advance.
Divam
Last updated on Jan, 11th 2012
You can try with this css :
.v-tabsheet-tabitem .v-caption{
width:200px !important;
}
Last updated on
You cannot reply to this thread.