If the datatable has attribute scrollable=true and i specify width in percentage in column tag, this width is translated automatically in pixels on the generated html page.
sample source code:
generated html:<p:dataTable id="corsi" var="cor" value="#{infoBean.dipendente.corsi}"
resizableColumns="true" scrollable="true" scrollHeight="270">
<p:column width="40%" headerText="#{l.titolo}" style="text-align:left">
<h:outputText value="#{cor.getCorTitolo(localeBean.language)}" />
</p:column>
...
I'm using Ultima layout versione 2.0.2. (but the problem is in 2.0.1 and 2.0.0 too)...
<th id="form:tabView:corsi:j_idt57" class="ui-state-default ui-resizable-column" role="columnheader" aria-label="Titolo" scope="col"
style="text-align:left;width:40px"><span class="ui-column-title">Titolo</span></th>
...
I have to remain on PF 7.0.5 because i strongly use percentage in column width combined with scrollable datatable.
It's not a problem of PF, since if i don't use ultima layout (and use omega instead) everything works fine.
Thanks
PS: I reallized that this line in theme css causes the problem:
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
haw can we resolve it ?
Simone