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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
table header column default width?
I build a table with 9 columns without setting column or table width.
The table body columns are always okay, but the header columns no text is visible.
Inside the sourcecode i found the following lines.
<DIV style="WIDTH: 1053px" class=v-table-header-wrap>
<DIV style="OVERFLOW: hidden" class=v-table-header>
<DIV style="WIDTH: 9000px">
<TABLE cellSpacing=0>
<TBODY>
<TR>
WIDTH: 9000px !!! isn't from me!!! How can i fix this
Using Vaadin 6.2.2 for Portlet in Liferay 5.2.3
Same thing is happening to me on WebSphere Portal 6.1 with vaadin 6.2.5 and 6.3-20100308.210424-31
Hello Knute,
the following css lines work for me ;)
div.v-table-header div {
width: auto;
}
div.v-table-header div table {
width: auto;
}
div.v-table-header div table .v-table-resizer {
width: auto;
}
div.v-table-header div table .v-table-caption-container {
width: auto;
}
Martin Biastoch: The table body columns are always okay, but the header columns no text is visible.
Can you elaborate? Screenshot? When does this happen, in all tables or in one specific case? In which browser(s) does it happen?
Do you have a custom theme in your app? Have you tried disabling it?
Martin Biastoch: WIDTH: 9000px !!! isn't from me!!! How can i fix this
Indeed not from you. This is part of the internal structure of the Table component, and it needs to be there. The two earlier DIV elements, first the 1053px wide and then the undefined wide, i.e. 100% wide, overflow:hidden, will cut off the 9000px DIV, so the header will not be 9000px wide, but exactly 1053px.
The 9000px is needed in order for the contained TABLE element to grow without limit, since browser rendering engines have very sophisticated size calculations for normal tables, which would in some cases make the table cells not respect their specified widths.
So you don't need to fix that value, just leave it be. Your invisible table header column texts are caused by something other than this.
Or then I'm missing something that relates to Liferay, and that's possible too. You could try to run your application outside Liferay, if possible, and see if the problem still presents itself.
Hello Jouni,
thanks for that answer.
The application outside liferay and without our own theme will be tested next week.
Results follow next week.
Martin